Add a Credits menu. Fixes #2864.
This commit is contained in:
36
mods/cnc/chrome/credits.yaml
Normal file
36
mods/cnc/chrome/credits.yaml
Normal 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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user