Changes to the RestartGame function to make it more streamlined
Removal of PromptAbortAction and inclusion into PromptConfirmAction Changes to prevent a restart button being required for all mods ConfirmAction Addtion of named parameters to PromptConfirmAction Moved StartGame from MissionBrowserLogic.cs to Game.cs
This commit is contained in:
@@ -136,7 +136,7 @@ ScrollPanel@SPECTATOR_DROPDOWN_TEMPLATE:
|
||||
Container@CONFIRM_PROMPT:
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
Y: (WINDOW_BOTTOM - 90)/2
|
||||
Width: 370
|
||||
Width: 500
|
||||
Height: 125
|
||||
Children:
|
||||
Label@PROMPT_TITLE:
|
||||
@@ -146,7 +146,7 @@ Container@CONFIRM_PROMPT:
|
||||
Contrast: true
|
||||
Align: Center
|
||||
Background@bg:
|
||||
Width: 370
|
||||
Width: 500
|
||||
Height: 90
|
||||
Background: panel-black
|
||||
Children:
|
||||
@@ -156,19 +156,26 @@ Container@CONFIRM_PROMPT:
|
||||
Height: 25
|
||||
Font: Bold
|
||||
Align: Center
|
||||
Button@CONFIRM_BUTTON:
|
||||
Key: return
|
||||
X: 360
|
||||
Y: 89
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Abort
|
||||
Button@OTHER_BUTTON:
|
||||
Key: r
|
||||
X: 210
|
||||
Y: 89
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Restart
|
||||
Button@CANCEL_BUTTON:
|
||||
Key: escape
|
||||
Y: 89
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Cancel
|
||||
Button@CONFIRM_BUTTON:
|
||||
Key: return
|
||||
X: 230
|
||||
Y: 89
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Confirm
|
||||
|
||||
Container@CANCEL_PROMPT:
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
@@ -200,50 +207,6 @@ Container@CANCEL_PROMPT:
|
||||
Height: 35
|
||||
Text: Cancel
|
||||
|
||||
Container@ABORT_MISSION_PROMPT:
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
Y: (WINDOW_BOTTOM - 90)/2
|
||||
Width: 500
|
||||
Height: 125
|
||||
Children:
|
||||
Label@PROMPT_TITLE:
|
||||
Width: PARENT_RIGHT
|
||||
Y: 0-25
|
||||
Font: BigBold
|
||||
Contrast: true
|
||||
Align: Center
|
||||
Background@bg:
|
||||
Width: 500
|
||||
Height: 90
|
||||
Background: panel-black
|
||||
Children:
|
||||
Label@PROMPT_TEXT:
|
||||
Y: (PARENT_BOTTOM-HEIGHT)/2
|
||||
Width: PARENT_RIGHT
|
||||
Height: 25
|
||||
Font: Bold
|
||||
Align: Center
|
||||
Button@ABORT_BUTTON:
|
||||
Key: return
|
||||
X: 360
|
||||
Y: 89
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Abort
|
||||
Button@RESTART_BUTTON:
|
||||
Key: r
|
||||
X: 180
|
||||
Y: 89
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Restart
|
||||
Button@CANCEL_BUTTON:
|
||||
Key: escape
|
||||
Y: 89
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Cancel
|
||||
|
||||
Container@TEXT_INPUT_PROMPT:
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
Y: (WINDOW_BOTTOM - HEIGHT)/2
|
||||
|
||||
Reference in New Issue
Block a user