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,36 @@
Container@CREDITS_PANEL:
Logic:CreditsLogic
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 400)/2
Width:400
Height:435
Children:
Label@CREDITS_TITLE:
Width:PARENT_RIGHT
Y:0-25
Font:BigBold
Contrast:true
Align:Center
Text:Credits
Background@bg:
Width:PARENT_RIGHT
Height:400
Background:panel-black
Children:
ScrollPanel@CREDITS_DISPLAY:
X:15
Y:15
Width:PARENT_RIGHT - 30
Height:PARENT_BOTTOM - 30
Children:
Label@CREDITS_TEMPLATE:
X:8
Height:16
VAlign:Top
Button@BACK_BUTTON:
X:PARENT_RIGHT-140
Y:400
Width:140
Height:35
Text:Back
Key:escape

View File

@@ -157,6 +157,12 @@ Container@MENU_BACKGROUND:
Width:140
Height:35
Text:Settings
Button@CREDITS_BUTTON:
X:450
Y:0
Width:140
Height:35
Text:Credits
Button@BACK_BUTTON:
Key:escape
X:600

View File

@@ -77,6 +77,7 @@ ChromeLayout:
mods/cnc/chrome/music.yaml
mods/cnc/chrome/modchooser.yaml
mods/cnc/chrome/settings.yaml
mods/cnc/chrome/credits.yaml
mods/cnc/chrome/cheats.yaml
mods/cnc/chrome/dialogs.yaml
mods/cnc/chrome/objectives.yaml