ok/cancel buttons in file dialog
Dependencies
- [2]
G5ZIPHJCmake it look more like a dialog - [3]
ESOJS6ZWextract a function - [4]
FIUQJVL2first draft of load/save buttons - [5]
SJXIMERStype out a filename to load/save - [*]
R5QXEHUIsomebody stop me
Change contents
- file addition: 0143-File_dialog_input_right_margin[7.2]
File_dialog_input_right_margin = 0 - replacement in 0142-right_justified_button at line 2
local w = App.width('settings')local w = App.width(name) - replacement in 0142-right_justified_button at line 4
styled_button('settings', x, y, callback)return xstyled_button(name, x, y, callback)return x-10 - replacement in 0140-refresh_file_dialog_input_start at line 5
if App.width(s) < Safe_width-Menu_left-15-15 thenif App.width(s) < File_dialog_input_right_margin-15 then - replacement in 0119-draw_file_dialog at line 2
draw_file_dialog_input()-- border - edit in 0119-draw_file_dialog at line 10
-- ok/cancel buttons (but with wider names)local r = Safe_width-10r = right_justified_button('cancel', r, Menu_top+5+3, function()reset_file_dialog_state()end)r = right_justified_button('submit', r, Menu_top+5+3, function()File_dialog_callback(File_dialog_input_text)reset_file_dialog_state()end)File_dialog_input_right_margin = r-- inputdraw_file_dialog_input()-- filtered files