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

View File

@@ -2,7 +2,7 @@ Background@MAINMENU:
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:250
Height:460
Height:500
Visible:true
Logic:MainMenuButtonsLogic
Children:
@@ -63,16 +63,23 @@ Background@MAINMENU:
Height:25
Text:Replay Viewer
Font:Bold
Button@MAINMENU_BUTTON_ASSET_BROWSER:
Button@MAINMENU_BUTTON_CREDITS:
X:45
Y:350
Width:160
Height:25
Text:Credits
Font:Bold
Button@MAINMENU_BUTTON_ASSET_BROWSER:
X:45
Y:390
Width:160
Height:25
Text:Asset Browser
Font:Bold
Button@MAINMENU_BUTTON_QUIT:
X:45
Y:390
Y:430
Width:160
Height:25
Text:Quit

View File

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

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