Issue #4650: Abort Mission Confirmation
Adapted the confirmation dialog from the CnC mod and wired it to the "Abort" and "Surrender" buttons.
This commit is contained in:
34
mods/ra/chrome/confirmation-dialogs.yaml
Normal file
34
mods/ra/chrome/confirmation-dialogs.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
Background@CONFIRM_PROMPT:
|
||||
X: (WINDOW_RIGHT - WIDTH)/2
|
||||
Y: (WINDOW_BOTTOM - 90)/2
|
||||
Width: 370
|
||||
Height: 175
|
||||
Children:
|
||||
Label@PROMPT_TITLE:
|
||||
Width: PARENT_RIGHT
|
||||
Y: 20
|
||||
Height: 25
|
||||
Font: Bold
|
||||
Align: Center
|
||||
Label@PROMPT_TEXT:
|
||||
X: 15
|
||||
Y: 50
|
||||
Width: PARENT_RIGHT - 30
|
||||
Height: 65
|
||||
Align: Center
|
||||
Button@CONFIRM_BUTTON:
|
||||
X: 20
|
||||
Y: PARENT_BOTTOM - 45
|
||||
Width: 160
|
||||
Height: 25
|
||||
Text: Confirm
|
||||
Font: Bold
|
||||
Key: return
|
||||
Button@CANCEL_BUTTON:
|
||||
X: PARENT_RIGHT - 180
|
||||
Y: PARENT_BOTTOM - 45
|
||||
Width: 160
|
||||
Height: 25
|
||||
Text: Cancel
|
||||
Font: Bold
|
||||
Key: escape
|
||||
@@ -100,6 +100,7 @@ ChromeLayout:
|
||||
mods/ra/chrome/assetbrowser.yaml
|
||||
mods/ra/chrome/irc.yaml
|
||||
mods/ra/chrome/missionbrowser.yaml
|
||||
mods/ra/chrome/confirmation-dialogs.yaml
|
||||
|
||||
Weapons:
|
||||
mods/ra/weapons.yaml
|
||||
|
||||
Reference in New Issue
Block a user