From a990e948564aa96f95dc5c692e512a68fd48852e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 2 Jun 2006 19:52:01 +0000 Subject: Rearrange the buttons in the setup exit confirmation box. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 552 --- setup/mainmenu.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3