Files
OpenRA/mods/d2k/chrome/ingame-menu.yaml
Ivaylo Draganov 79ae71a517 Rename *_RIGHT to *_WIDTH and *_BOTTOM to *_HEIGHT in integer expressions for widgets
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.
2024-10-07 12:59:25 +03:00

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