mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 17:21:57 +00:00
Added GUI_WINDOW_FIXED_SIZE_CENTERED macro
This commit is contained in:
parent
749123d0bb
commit
71bc3f356b
@ -243,6 +243,16 @@
|
||||
height = "(screen_height)"
|
||||
#enddef
|
||||
|
||||
#define GUI_WINDOW_FIXED_SIZE_CENTERED WIDTH HEIGHT
|
||||
automatic_placement = "false"
|
||||
|
||||
width = "(min(screen_width, {WIDTH}))"
|
||||
height = "(min(screen_height, {HEIGHT}))"
|
||||
|
||||
x = "(screen_width / 2 - window_width / 2)"
|
||||
y = "(screen_height / 2 - window_height / 2)"
|
||||
#enddef
|
||||
|
||||
#define GUI_HORIZONTAL_SPACER_LINE
|
||||
[row]
|
||||
grow_factor = 0
|
||||
|
@ -11,13 +11,7 @@
|
||||
[resolution]
|
||||
definition = "default"
|
||||
|
||||
automatic_placement = "false"
|
||||
|
||||
width = "(min(screen_width, 700))"
|
||||
height = "(min(screen_height, 750))"
|
||||
|
||||
x = "(screen_width / 2 - window_width / 2)"
|
||||
y = "(screen_height / 2 - window_height / 2)"
|
||||
{GUI_WINDOW_FIXED_SIZE_CENTERED 700 750}
|
||||
|
||||
[linked_group]
|
||||
id = "bookmark_icons"
|
||||
|
Loading…
x
Reference in New Issue
Block a user