Implement loading screens.

This commit is contained in:
Paul Chote
2019-04-20 10:32:21 +00:00
committed by reaperrr
parent 1f3b30c2d2
commit 3a693d8def
16 changed files with 260 additions and 10 deletions

View File

@@ -0,0 +1,52 @@
Container@GAMESAVE_LOADING_SCREEN:
Logic: GameSaveLoadingLogic
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Children:
LogicKeyListener@CANCEL_HANDLER:
Image@NOD:
X: WINDOW_RIGHT / 2 - 384
Y: (WINDOW_BOTTOM - 256) / 2
ImageCollection: logos
ImageName: nod-load
Image@GDI:
X: WINDOW_RIGHT / 2 + 128
Y: (WINDOW_BOTTOM - 256) / 2
ImageCollection: logos
ImageName: gdi-load
Image@EVA:
X: WINDOW_RIGHT - 128 - 43
Y: 43
Width: 128
Height: 64
ImageCollection: logos
ImageName: eva
Label@VERSION_LABEL:
X: WINDOW_RIGHT - 128 - 43
Y: 115
Width: 128
Align: Center
Shadow: true
Background@BORDER:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Background: shellmapborder
Label@TITLE:
Width: WINDOW_RIGHT
Y: 3 * WINDOW_BOTTOM / 4 - 30
Height: 25
Font: Bold
Align: Center
Text: Loading Saved Game
ProgressBar@PROGRESS:
X: (WINDOW_RIGHT - 500) / 2
Y: 3 * WINDOW_BOTTOM / 4
Width: 500
Height: 20
Label@DESC:
Width: WINDOW_RIGHT
Y: 3 * WINDOW_BOTTOM / 4 + 20
Height: 25
Font: Regular
Align: Center
Text: Press Escape to cancel loading and return to the main menu

View File

@@ -107,6 +107,7 @@ ChromeLayout:
cnc|chrome/color-picker.yaml
cnc|chrome/mapchooser.yaml
cnc|chrome/replaybrowser.yaml
cnc|chrome/gamesave-loading.yaml
cnc|chrome/ingame.yaml
cnc|chrome/ingame-chat.yaml
cnc|chrome/ingame-menu.yaml

View File

@@ -0,0 +1,35 @@
Container@GAMESAVE_LOADING_SCREEN:
Logic: GameSaveLoadingLogic
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Children:
LogicKeyListener@CANCEL_HANDLER:
Background@STRIPE:
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: WINDOW_RIGHT
Height: 256
Background: loadscreen-stripe
Image@LOGO:
X: (WINDOW_RIGHT - 256) / 2
Y: (WINDOW_BOTTOM - 256) / 2
ImageCollection: logos
ImageName: logo
Label@TITLE:
Width: WINDOW_RIGHT
Y: 3 * WINDOW_BOTTOM / 4 - 30
Height: 25
Font: Bold
Align: Center
Text: Loading Saved Game
ProgressBar@PROGRESS:
X: (WINDOW_RIGHT - 500) / 2
Y: 3 * WINDOW_BOTTOM / 4
Width: 500
Height: 20
Label@DESC:
Width: WINDOW_RIGHT
Y: 3 * WINDOW_BOTTOM / 4 + 20
Height: 25
Font: Regular
Align: Center
Text: Press Escape to cancel loading and return to the main menu

View File

@@ -638,4 +638,10 @@ scrollheader-selected: dialog.png
corner-br: 639,127,1,1
dropdown: dialog.png
separator: 512,1,1,19
separator: 512,1,1,19
logos: loadscreen.png
logo: 0,0,256,256
loadscreen-stripe: loadscreen.png
background: 256,0,256,256

View File

@@ -107,6 +107,7 @@ ChromeLayout:
common|chrome/confirmation-dialogs.yaml
common|chrome/editor.yaml
common|chrome/replaybrowser.yaml
common|chrome/gamesave-loading.yaml
Weapons:
d2k|weapons/debris.yaml

View File

@@ -1046,6 +1046,9 @@ scrollheader-selected: dialog.png
logos: loadscreen.png
logo: 0,0,256,256
loadscreen-stripe: loadscreen.png
background: 256,0,256,256
mainmenu-border: dialog.png
border-r: 728,427,40,40
border-l: 648,427,40,40

View File

@@ -0,0 +1,37 @@
Container@GAMESAVE_LOADING_SCREEN:
Logic: GameSaveLoadingLogic
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Children:
LogicKeyListener@CANCEL_HANDLER:
Background@STRIPE:
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: WINDOW_RIGHT
Height: 256
Background: loadscreen-stripe
Image@LOGO:
X: (WINDOW_RIGHT - 256) / 2
Y: (WINDOW_BOTTOM - 256) / 2
ImageCollection: logos
ImageName: logo
Label@TITLE:
Width: WINDOW_RIGHT
Y: 3 * WINDOW_BOTTOM / 4 - 30
Height: 25
Font: Bold
Align: Center
Text: Loading Saved Game
ProgressBar@PROGRESS:
X: (WINDOW_RIGHT - 500) / 2
Y: 3 * WINDOW_BOTTOM / 4
Width: 500
Height: 20
Background: observer-scrollpanel-button-pressed
Bar: observer-scrollpanel-button
Label@DESC:
Width: WINDOW_RIGHT
Y: 3 * WINDOW_BOTTOM / 4 + 20
Height: 25
Font: Regular
Align: Center
Text: Press Escape to cancel loading and return to the main menu

View File

@@ -114,6 +114,7 @@ ChromeLayout:
common|chrome/multiplayer-directconnect.yaml
common|chrome/connection.yaml
common|chrome/replaybrowser.yaml
ra|chrome/gamesave-loading.yaml
common|chrome/dropdowns.yaml
common|chrome/musicplayer.yaml
common|chrome/tooltips.yaml

View File

@@ -932,3 +932,9 @@ mainmenu-border: dialog.png
dropdown: dialog.png
separator: 512,1,1,19
logos: loadscreen.png
logo: 0,0,256,256
loadscreen-stripe: loadscreen.png
background: 256,0,256,256

View File

@@ -163,6 +163,7 @@ ChromeLayout:
common|chrome/multiplayer-directconnect.yaml
common|chrome/connection.yaml
common|chrome/replaybrowser.yaml
common|chrome/gamesave-loading.yaml
ts|chrome/dropdowns.yaml
common|chrome/musicplayer.yaml
common|chrome/tooltips.yaml