The terms "width" and "height" are clearer and they match what the values actually represent (window or parent width/height). The YAML changes are generated with the update rule.
36 lines
886 B
YAML
36 lines
886 B
YAML
Container@INGAME_MENU:
|
|
Width: WINDOW_WIDTH
|
|
Height: WINDOW_HEIGHT
|
|
Logic: IngameMenuLogic
|
|
Buttons: RESUME, LOAD_GAME, SAVE_GAME, SETTINGS, MUSIC, SURRENDER, RESTART, BACK_TO_EDITOR, ABORT_MISSION, SAVE_MAP, PLAY_MAP, EXIT_EDITOR
|
|
ButtonStride: 0, 40
|
|
Children:
|
|
Label@VERSION_LABEL:
|
|
Logic: VersionLabelLogic
|
|
X: WINDOW_WIDTH - 10
|
|
Y: WINDOW_HEIGHT - 19
|
|
Align: Right
|
|
Font: Regular
|
|
Contrast: True
|
|
Container@PANEL_ROOT:
|
|
Background@MENU_BUTTONS:
|
|
X: 13 + (WINDOW_WIDTH - 522) / 4 - WIDTH / 2
|
|
Y: (WINDOW_HEIGHT - HEIGHT) / 2
|
|
Width: 200
|
|
Height: 120
|
|
Children:
|
|
Label@LABEL_TITLE:
|
|
X: (PARENT_WIDTH - WIDTH) / 2
|
|
Y: 21
|
|
Width: 200
|
|
Height: 30
|
|
Text: label-menu-buttons-title
|
|
Align: Center
|
|
Font: Bold
|
|
Button@BUTTON_TEMPLATE:
|
|
X: (PARENT_WIDTH - WIDTH) / 2
|
|
Y: 60
|
|
Width: 140
|
|
Height: 30
|
|
Font: Bold
|