Simplify position and parameters

This commit is contained in:
Gouvernathor 2023-11-17 02:31:46 +01:00
parent 6216b62ef9
commit a7ad9fafc7

View File

@ -221,16 +221,16 @@ screen inventory(xx, yy):
use close_button(key=["inventory", "game_menu"]) use close_button(key=["inventory", "game_menu"])
fixed: fixed:
pos (xx, yy)
if settings.get("animations"): if settings.get("animations"):
at gui_animation at gui_animation
use inventory_menu(xx, yy) use inventory_menu
use inventory_menuitem(xx, yy) use inventory_menuitem
screen inventory_menu(xx, yy): screen inventory_menu():
window: window:
style "empty" style "empty"
style_prefix gui.theme('achievements') style_prefix gui.theme('achievements')
pos (xx, yy)
xysize (207, 454) xysize (207, 454)
use invisible_button() use invisible_button()
@ -268,11 +268,11 @@ screen inventory_menu(xx, yy):
textbutton "Show: [current_filter]" action [__Filter, __Actuate()] textbutton "Show: [current_filter]" action [__Filter, __Actuate()]
textbutton "Sort by: [current_sorting]" action [__Sort, __Actuate()] textbutton "Sort by: [current_sorting]" action [__Sort, __Actuate()]
screen inventory_menuitem(xx, yy): screen inventory_menuitem():
window: window:
style "empty" style "empty"
style_prefix gui.theme() style_prefix gui.theme()
pos (xx+217, yy-53) pos (217, -53)
xysize (560, 507) xysize (560, 507)
use invisible_button() use invisible_button()