Restore two-button prompt for two-button dialogs.

This commit is contained in:
Paul Chote
2016-04-01 17:51:44 +01:00
parent 95f091853e
commit 1fadc8531c
3 changed files with 77 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ ScrollPanel@SPECTATOR_DROPDOWN_TEMPLATE:
Width: PARENT_RIGHT
Height: 25
Container@CONFIRM_PROMPT:
Container@CONFIRM_PROMPT_THREEBUTTON:
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - 90)/2
Width: 500
@@ -177,6 +177,44 @@ Container@CONFIRM_PROMPT:
Height: 35
Text: Cancel
Container@CONFIRM_PROMPT_TWOBUTTON:
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM - 90)/2
Width: 370
Height: 125
Children:
Label@PROMPT_TITLE:
Width: PARENT_RIGHT
Y: 0-25
Font: BigBold
Contrast: true
Align: Center
Background@bg:
Width: 370
Height: 90
Background: panel-black
Children:
Label@PROMPT_TEXT:
Y: (PARENT_BOTTOM-HEIGHT)/2
Width: PARENT_RIGHT
Height: 25
Font: Bold
Align: Center
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
Y: (WINDOW_BOTTOM - 90)/2