responsive layout for settings menu

This commit is contained in:
Kartik K. Agaram 2023-11-24 21:03:15 -08:00
parent 22bbb4c104
commit ec034bb758
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
draw_settings_menu = function()
App.color(Menu_background)
local w,h = 200, Font_height*8
local w,h = 200, 130+2*Line_height
local x,y = Safe_width-30-w, Menu_bottom
Settings_menu_area = {x=x, y=y, w=w, h=h}
love.graphics.rectangle('fill', x,y, w,h)
@ -61,7 +61,7 @@ draw_settings_menu = function()
draw_slider(Settings_foreground_sliders.r)
draw_slider(Settings_foreground_sliders.g)
draw_slider(Settings_foreground_sliders.b)
y = y+10+Line_height+10
y = y+50
-- colors/background
love.graphics.print('bg', x+20, y)
App.color(Background_color)