summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-06-02 19:52:01 +0000
committerSimon Howard2006-06-02 19:52:01 +0000
commita990e948564aa96f95dc5c692e512a68fd48852e (patch)
tree2db7d1b9b5c21064610f36166001ad7631ab9b53
parent02f4a0dcf492d3e86194ae39a59a286bfc2f3e32 (diff)
downloadchocolate-doom-a990e948564aa96f95dc5c692e512a68fd48852e.tar.gz
chocolate-doom-a990e948564aa96f95dc5c692e512a68fd48852e.tar.bz2
chocolate-doom-a990e948564aa96f95dc5c692e512a68fd48852e.zip
Rearrange the buttons in the setup exit confirmation box.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 552
-rw-r--r--setup/mainmenu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup/mainmenu.c b/setup/mainmenu.c
index 73c83dde..6617060b 100644
--- a/setup/mainmenu.c
+++ b/setup/mainmenu.c
@@ -24,6 +24,7 @@ void QuitConfirm(void *unused1, void *unused2)
label = TXT_NewLabel("Save settings and\n"
"quit setup?");
TXT_AddWidget(window, label);
+ TXT_AddWidget(window, TXT_NewStrut(24, 0));
TXT_SetWidgetAlign(label, TXT_HORIZ_CENTER);
button = TXT_NewButton(" Yes ");
@@ -32,6 +33,13 @@ void QuitConfirm(void *unused1, void *unused2)
TXT_SignalConnect(button, "pressed", DoQuit, DoQuit);
button = TXT_NewButton(" No ");
+
+ // Only an "escape" button in the middle.
+ TXT_SetWindowAction(window, TXT_HORIZ_LEFT, NULL);
+ TXT_SetWindowAction(window, TXT_HORIZ_CENTER,
+ TXT_NewWindowEscapeAction(window));
+ TXT_SetWindowAction(window, TXT_HORIZ_RIGHT, NULL);
+
TXT_SetWidgetAlign(button, TXT_HORIZ_CENTER);
TXT_AddWidget(window, button);
TXT_SignalConnect(button, "pressed", DoQuit, NULL);