mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 22:32:01 +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)"
|
height = "(screen_height)"
|
||||||
#enddef
|
#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
|
#define GUI_HORIZONTAL_SPACER_LINE
|
||||||
[row]
|
[row]
|
||||||
grow_factor = 0
|
grow_factor = 0
|
||||||
|
@ -11,13 +11,7 @@
|
|||||||
[resolution]
|
[resolution]
|
||||||
definition = "default"
|
definition = "default"
|
||||||
|
|
||||||
automatic_placement = "false"
|
{GUI_WINDOW_FIXED_SIZE_CENTERED 700 750}
|
||||||
|
|
||||||
width = "(min(screen_width, 700))"
|
|
||||||
height = "(min(screen_height, 750))"
|
|
||||||
|
|
||||||
x = "(screen_width / 2 - window_width / 2)"
|
|
||||||
y = "(screen_height / 2 - window_height / 2)"
|
|
||||||
|
|
||||||
[linked_group]
|
[linked_group]
|
||||||
id = "bookmark_icons"
|
id = "bookmark_icons"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user