bugfix: skipping files near right margin

akkartik
Nov 26, 2023, 5:04 PM
XJBUCJAGUDFBGOHHG4SS542WRJSQNJJGVWU26EVUEOMEM4MVXFGQC

Dependencies

  • [2] SJXIMERS type out a filename to load/save
  • [3] FIUQJVL2 first draft of load/save buttons

Change contents

  • replacement in 0119-draw_file_dialog at line 16
    [3.2035][3.2035:2174](),[3.2174][2.2688:2718](),[2.2718][3.2234:2263](),[3.2234][3.2234:2263]()
    if x == Menu_left+10 or x+w < Safe_width-Menu_left-10 then
    styled_button(filename, x,y, function()
    File_dialog_callback(filename)
    reset_file_dialog_state()
    end)
    x = x+w+10
    else
    [3.2035]
    [3.2263]
    if x ~= Menu_left+10 and x+w > Safe_width-Menu_left-10 then
  • edit in 0119-draw_file_dialog at line 23
    [3.2372]
    [3.2372]
    styled_button(filename, x,y, function()
    File_dialog_callback(filename)
    reset_file_dialog_state()
    end)
    x = x+w+10