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:
Pavlos Touboulidis
2014-04-22 17:42:24 +03:00
parent bef3439055
commit 12e3ee9fda
6 changed files with 99 additions and 4 deletions

View 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

View File

@@ -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