Add save/load browser and buttons to the UI.

This commit is contained in:
Paul Chote
2019-04-20 10:33:55 +00:00
committed by reaperrr
parent 3a693d8def
commit de9649df27
13 changed files with 679 additions and 1 deletions

View File

@@ -0,0 +1,115 @@
Container@GAMESAVE_BROWSER_PANEL:
Logic: GameSaveBrowserLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 600
Height: 400
Children:
Label@LOAD_TITLE:
Width: PARENT_RIGHT
Y: 0 - 25
Font: BigBold
Contrast: true
Align: Center
Text: Load game
Visible: False
Label@SAVE_TITLE:
Width: PARENT_RIGHT
Y: 0 - 25
Font: BigBold
Contrast: true
Align: Center
Text: Save game
Visible: False
Background@bg:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Background: panel-black
Children:
ScrollPanel@GAME_LIST:
X: 10
Y: 10
Width: PARENT_RIGHT - 20
Height: PARENT_BOTTOM - 20
Children:
ScrollItem@NEW_TEMPLATE:
Width: PARENT_RIGHT - 27
Height: 25
X: 2
Visible: false
Children:
Label@TITLE:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Align: Center
Text: [CREATE NEW FILE]
ScrollItem@GAME_TEMPLATE:
Width: PARENT_RIGHT - 27
Height: 25
X: 2
Visible: false
Children:
Label@TITLE:
X: 10
Width: PARENT_RIGHT - 200 - 10
Height: 25
Label@DATE:
X: PARENT_RIGHT - WIDTH - 10
Width: 200
Height: 25
Align: Right
Container@SAVE_WIDGETS:
X: 10
Y: PARENT_BOTTOM - 35
Width: PARENT_RIGHT - 20
Height: 35
Visible: False
Children:
TextField@SAVE_TEXTFIELD:
Width: PARENT_RIGHT
Height: 25
Type: Filename
Button@CANCEL_BUTTON:
Key: escape
X: 0
Y: PARENT_BOTTOM - 1
Width: 100
Height: 35
Text: Back
Button@DELETE_ALL_BUTTON:
X: PARENT_RIGHT - 330 - WIDTH
Y: PARENT_BOTTOM - 1
Width: 100
Height: 35
Text: Delete All
Button@DELETE_BUTTON:
X: PARENT_RIGHT - 220 - WIDTH
Y: PARENT_BOTTOM - 1
Width: 100
Height: 35
Text: Delete
Key: Delete
Button@RENAME_BUTTON:
X: PARENT_RIGHT - 110 - WIDTH
Y: PARENT_BOTTOM - 1
Width: 100
Height: 35
Text: Rename
Key: F2
Button@LOAD_BUTTON:
Key: return
X: PARENT_RIGHT - WIDTH
Y: PARENT_BOTTOM - 1
Width: 100
Height: 35
Text: Load
Visible: False
Button@SAVE_BUTTON:
Key: return
X: PARENT_RIGHT - WIDTH
Y: PARENT_BOTTOM - 1
Width: 100
Height: 35
Text: Save
Visible: False
TooltipContainer@TOOLTIP_CONTAINER:

View File

@@ -119,6 +119,12 @@ Container@MENU_BACKGROUND:
Width: 140
Height: 35
Text: Missions
Button@LOAD_BUTTON:
X: 300
Y: 0
Width: 140
Height: 35
Text: Load
Button@BACK_BUTTON:
Key: escape
X: 450

View File

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