ref: a990e948564aa96f95dc5c692e512a68fd48852e
parent: 02f4a0dcf492d3e86194ae39a59a286bfc2f3e32
author: Simon Howard <fraggle@gmail.com>
date: Fri Jun 2 15:52:01 EDT 2006
Rearrange the buttons in the setup exit confirmation box. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 552
--- a/setup/mainmenu.c
+++ b/setup/mainmenu.c
@@ -24,6 +24,7 @@
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 @@
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);