Add a Credits menu. Fixes #2864.

This commit is contained in:
Paul Chote
2013-06-17 01:57:07 +12:00
parent 66383a57d1
commit a0e224ec71
12 changed files with 164 additions and 7 deletions

View File

@@ -0,0 +1,33 @@
Background@CREDITS_PANEL:
Logic:CreditsLogic
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 400)/2
Width:400
Height:450
Children:
Label@CREDITS_TITLE:
Width:PARENT_RIGHT
Y:20
Height:25
Font:Bold
Align:Center
Text:Credits
ScrollPanel@CREDITS_DISPLAY:
X:15
Y:50
Width:PARENT_RIGHT - 30
Height:345
Children:
Label@CREDITS_TEMPLATE:
X:8
Height:16
VAlign:Top
Button@BACK_BUTTON:
X:PARENT_RIGHT - 180
Y:PARENT_BOTTOM - 45
Width:160
Height:25
Text:Close
Font:Bold
Key:escape

View File

@@ -23,7 +23,7 @@ Container@MAINMENU:
X:(WINDOW_RIGHT - WIDTH)/8
Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:250
Height:555
Height:605
Logic:MainMenuButtonsLogic
Children:
Label@MAINMENU_LABEL_TITLE:
@@ -83,16 +83,23 @@ Container@MAINMENU:
Height:35
Text:Replay Viewer
Font:Bold
Button@MAINMENU_BUTTON_ASSET_BROWSER:
Button@MAINMENU_BUTTON_CREDITS:
X:45
Y:430
Width:160
Height:35
Text:Credits
Font:Bold
Button@MAINMENU_BUTTON_ASSET_BROWSER:
X:45
Y:480
Width:160
Height:35
Text:Asset Browser
Font:Bold
Button@MAINMENU_BUTTON_QUIT:
X:45
Y:480
Y:530
Width:160
Height:35
Text:Quit

View File

@@ -68,6 +68,7 @@ ChromeLayout:
mods/ra/chrome/ingame-observerstats.yaml
mods/ra/chrome/mainmenu.yaml
mods/ra/chrome/settings.yaml
mods/ra/chrome/credits.yaml
mods/ra/chrome/lobby.yaml
mods/ra/chrome/color-picker.yaml
mods/ra/chrome/map-chooser.yaml