2023-11-21 06:23:09 +00:00
|
|
|
settings_button = function(x, w)
|
|
|
|
button(Global_state, 'settings', {x=x, y=Menu_top+5, w=w+10, h=Line_height, bg={r=0.6, g=0.8, b=0.6},
|
|
|
|
icon = function(p)
|
|
|
|
App.color(Normal_color)
|
|
|
|
love.graphics.rectangle('line', p.x,p.y, p.w,p.h, 2,2)
|
|
|
|
love.graphics.print('settings', p.x+5,p.y+2)
|
|
|
|
end,
|
|
|
|
onpress1 = function()
|
2023-11-21 10:19:56 +00:00
|
|
|
Show_settings = not Show_settings
|
2023-11-25 17:10:05 +00:00
|
|
|
if Show_settings then Show_overflow = false end
|
2023-11-21 06:23:09 +00:00
|
|
|
end,
|
|
|
|
})
|
|
|
|
return x+w+10
|
|
|
|
end
|