Dynamically populate the ingame menu.

This commit is contained in:
Paul Chote
2019-04-14 21:03:13 +00:00
committed by reaperrr
parent 1cfb110d03
commit 877215c86a
4 changed files with 221 additions and 245 deletions

View File

@@ -2,6 +2,8 @@ Container@INGAME_MENU:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Logic: IngameMenuLogic
Buttons: RESUME, LOAD_GAME, SAVE_GAME, SETTINGS, MUSIC, SURRENDER, ABORT_MISSION, SAVE_MAP, EXIT_EDITOR
ButtonStride: 0, 40
Children:
Background@BORDER:
X: 0 - 15
@@ -27,7 +29,7 @@ Container@INGAME_MENU:
X: 13 + (WINDOW_RIGHT - 522) / 4 - WIDTH / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 200
Height: 295
Height: 120
Children:
Label@LABEL_TITLE:
X: (PARENT_RIGHT - WIDTH) / 2
@@ -37,53 +39,9 @@ Container@INGAME_MENU:
Text: Options
Align: Center
Font: Bold
Button@RESUME:
Button@BUTTON_TEMPLATE:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 60
Width: 140
Height: 30
Text: Resume
Font: Bold
Key: escape
Button@SETTINGS:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 100
Width: 140
Height: 30
Text: Settings
Font: Bold
Button@MUSIC:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 140
Width: 140
Height: 30
Text: Music
Font: Bold
Button@SURRENDER:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 180
Width: 140
Height: 30
Text: Surrender
Font: Bold
Button@SAVE_MAP:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 180
Width: 140
Height: 30
Text: Save Map
Font: Bold
Button@ABORT_MISSION:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 220
Width: 140
Height: 30
Text: Abort Mission
Font: Bold
Button@EXIT_EDITOR:
X: (PARENT_RIGHT - WIDTH) / 2
Y: 220
Width: 140
Height: 30
Text: Exit Map Editor
Font: Bold