Dynamically populate the ingame menu.
This commit is contained in:
@@ -2,6 +2,8 @@ Container@INGAME_MENU:
|
||||
Width: WINDOW_RIGHT
|
||||
Height: WINDOW_BOTTOM
|
||||
Logic: IngameMenuLogic
|
||||
Buttons: EXIT_EDITOR, SAVE_MAP, ABORT_MISSION, SURRENDER, LOAD_GAME, SAVE_GAME, MUSIC, SETTINGS, RESUME
|
||||
ButtonStride: 130, 0
|
||||
Children:
|
||||
Image@EVA:
|
||||
X: WINDOW_RIGHT - 128 - 43
|
||||
@@ -24,49 +26,9 @@ Container@INGAME_MENU:
|
||||
Container@MENU_BUTTONS:
|
||||
X: (WINDOW_RIGHT - WIDTH) / 2
|
||||
Y: WINDOW_BOTTOM - 33 - HEIGHT - 10
|
||||
Width: 740
|
||||
Width: 120
|
||||
Height: 35
|
||||
Children:
|
||||
Button@ABORT_MISSION:
|
||||
X: 0
|
||||
Y: 0
|
||||
Width: 140
|
||||
Button@BUTTON_TEMPLATE:
|
||||
Width: 120
|
||||
Height: 35
|
||||
Text: Abort Mission
|
||||
Button@EXIT_EDITOR:
|
||||
X: 0
|
||||
Y: 0
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Exit Map Editor
|
||||
Button@SURRENDER:
|
||||
X: 150
|
||||
Y: 0
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Surrender
|
||||
Button@SAVE_MAP:
|
||||
X: 150
|
||||
Y: 0
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Save Map
|
||||
Button@MUSIC:
|
||||
X: 300
|
||||
Y: 0
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Music
|
||||
Button@SETTINGS:
|
||||
X: 450
|
||||
Y: 0
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Settings
|
||||
Button@RESUME:
|
||||
Key: escape
|
||||
X: 600
|
||||
Y: 0
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Resume
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
Label@VERSION_LABEL:
|
||||
X: WINDOW_RIGHT - 10
|
||||
@@ -14,7 +16,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
|
||||
@@ -24,53 +26,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
|
||||
|
||||
Reference in New Issue
Block a user