12 lines
381 B
Plaintext
12 lines
381 B
Plaintext
settings_button = function(x, w)
|
|
styled_button('settings', x, Menu_top+5,
|
|
function()
|
|
Show_settings = not Show_settings
|
|
if Show_settings then Show_overflow = false end
|
|
if not Show_settings then
|
|
-- On mobile devices, we can't depend on on.save_settings() triggering on quit
|
|
love.filesystem.write('config', json.encode(settings()))
|
|
end
|
|
end)
|
|
return x+w+10
|
|
end |