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,116 @@
Background@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: 20
Height: 25
Font: Bold
Align: Center
Text: Load game
Visible: False
Label@SAVE_TITLE:
Width: PARENT_RIGHT
Y: 20
Height: 25
Font: Bold
Align: Center
Text: Save game
Visible: False
ScrollPanel@GAME_LIST:
X: 20
Y: 50
Width: PARENT_RIGHT - 40
Height: PARENT_BOTTOM - 102
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: 20
Y: PARENT_BOTTOM - 77
Width: PARENT_RIGHT - 40
Height: 32
Visible: False
Children:
TextField@SAVE_TEXTFIELD:
Width: PARENT_RIGHT
Height: 25
Type: Filename
Button@CANCEL_BUTTON:
Key: escape
X: 20
Y: PARENT_BOTTOM - 45
Width: 100
Height: 25
Text: Back
Font: Bold
Button@DELETE_ALL_BUTTON:
X: PARENT_RIGHT - 350 - WIDTH
Y: PARENT_BOTTOM - 45
Width: 100
Height: 25
Text: Delete All
Font: Bold
Button@DELETE_BUTTON:
X: PARENT_RIGHT - 240 - WIDTH
Y: PARENT_BOTTOM - 45
Width: 100
Height: 25
Text: Delete
Font: Bold
Key: Delete
Button@RENAME_BUTTON:
X: PARENT_RIGHT - 130 - WIDTH
Y: PARENT_BOTTOM - 45
Width: 100
Height: 25
Text: Rename
Font: Bold
Key: F2
Button@LOAD_BUTTON:
Key: return
X: PARENT_RIGHT - WIDTH - 20
Y: PARENT_BOTTOM - 45
Width: 100
Height: 25
Text: Load
Font: Bold
Visible: False
Button@SAVE_BUTTON:
Key: return
X: PARENT_RIGHT - WIDTH - 20
Y: PARENT_BOTTOM - 45
Width: 100
Height: 25
Text: Save
Font: Bold
Visible: False
TooltipContainer@TOOLTIP_CONTAINER:

View File

@@ -114,6 +114,13 @@ Container@MAINMENU:
Height: 30
Text: Missions
Font: Bold
Button@LOAD_BUTTON:
X: PARENT_RIGHT / 2 - WIDTH / 2
Y: 140
Width: 140
Height: 30
Text: Load
Font: Bold
Button@BACK_BUTTON:
X: PARENT_RIGHT / 2 - WIDTH / 2
Key: escape