Add menu plumbing for the new map editor.

This commit is contained in:
Matthias Mailänder
2015-02-21 16:01:20 +01:00
committed by Paul Chote
parent 444c02a498
commit 1f024a8695
8 changed files with 213 additions and 11 deletions

View File

@@ -165,14 +165,21 @@ Container@MENU_BACKGROUND:
Width: 140
Height: 35
Text: Music
Button@ASSETBROWSER_BUTTON:
Button@MAP_EDITOR_BUTTON:
X: 300
Y: 0
Width: 140
Height: 35
Text: Map Editor
Font: Bold
Button@ASSETBROWSER_BUTTON:
X: 450
Y: 0
Width: 140
Height: 35
Text: Asset Browser
Button@CREDITS_BUTTON:
X: 450
X: 600
Y: 0
Width: 140
Height: 35
@@ -184,6 +191,41 @@ Container@MENU_BACKGROUND:
Width: 140
Height: 35
Text: Back
Background@MAP_EDITOR_MENU:
Width: PARENT_RIGHT
Visible: False
Children:
Label@MAP_EDITOR_MENU_TITLE:
X: 0
Y: 0-30
Width: PARENT_RIGHT
Height: 20
Text: Map Editor
Align: Center
Font: Bold
Contrast: True
Button@NEW_MAP_BUTTON:
X: 0
Y: 0
Width: 140
Height: 35
Text: New Map
Font: Bold
Button@LOAD_MAP_BUTTON:
X: 150
Y: 0
Width: 140
Height: 35
Text: Load Map
Font: Bold
Button@BACK_BUTTON:
X: 300
Y: 0
Width: 140
Height: 35
Text: Back
Font: Bold
Key: escape
Container@NEWS_BG:
Children:
DropDownButton@NEWS_BUTTON:

View File

@@ -127,16 +127,23 @@ Container@MAINMENU:
Height: 30
Text: Music
Font: Bold
Button@ASSETBROWSER_BUTTON:
Button@MAP_EDITOR_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 140
Width: 140
Height: 30
Text: Map Editor
Font: Bold
Button@ASSETBROWSER_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Width: 140
Height: 30
Text: Asset Browser
Font: Bold
Button@CREDITS_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Y: 220
Width: 140
Height: 30
Text: Credits
@@ -149,6 +156,40 @@ Container@MAINMENU:
Height: 30
Text: Back
Font: Bold
Background@MAP_EDITOR_MENU:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@MAP_EDITOR_MENU_TITLE:
X: 0
Y: 20
Width: 200
Height: 30
Text: Map Editor
Align: Center
Font: Bold
Button@NEW_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 60
Width: 140
Height: 30
Text: New Map
Font: Bold
Button@LOAD_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 100
Width: 140
Height: 30
Text: Load Map
Font: Bold
Button@BACK_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Key: escape
Y: 260
Width: 140
Height: 30
Text: Back
Font: Bold
Background@NEWS_BG:
X: (WINDOW_RIGHT - WIDTH)/2
Y: 35

View File

@@ -140,16 +140,23 @@ Container@MAINMENU:
Height: 30
Text: Music
Font: Bold
Button@ASSETBROWSER_BUTTON:
Button@MAP_EDITOR_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 140
Width: 140
Height: 30
Text: Map Editor
Font: Bold
Button@ASSETBROWSER_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Width: 140
Height: 30
Text: Asset Browser
Font: Bold
Button@CREDITS_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 180
Y: 220
Width: 140
Height: 30
Text: Credits
@@ -162,6 +169,40 @@ Container@MAINMENU:
Height: 30
Text: Back
Font: Bold
Background@MAP_EDITOR_MENU:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Label@MAP_EDITOR_MENU_TITLE:
X: 0
Y: 20
Width: 200
Height: 30
Text: Map Editor
Align: Center
Font: Bold
Button@NEW_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 60
Width: 140
Height: 30
Text: New Map
Font: Bold
Button@LOAD_MAP_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Y: 100
Width: 140
Height: 30
Text: Load Map
Font: Bold
Button@BACK_BUTTON:
X: PARENT_RIGHT/2-WIDTH/2
Key: escape
Y: 260
Width: 140
Height: 30
Text: Back
Font: Bold
Container@PERFORMANCE_INFO:
Logic: PerfDebugLogic
Children: