sokoban.love/0140-refresh_file_dialog_in...

12 lines
352 B
Plaintext
Raw Permalink Normal View History

2023-11-26 16:52:34 +00:00
refresh_file_dialog_input_start = function()
local len = utf8.len(File_dialog_input_text)
for start=0,len do
local s = File_dialog_input_text:sub(start)
2024-01-15 10:45:55 +00:00
if Font:getWidth(s) < File_dialog_input_right_margin-15 then
2023-11-26 16:52:34 +00:00
File_dialog_input_draw_suffix = s
return
end
end
assert(false, "refresh_file_dialog_input_start isn't working right")
2024-01-15 10:45:55 +00:00
end