From 3c16d8ecf9757475c4faa62154354a4009b08984 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 31 Mar 2022 17:22:37 +0200 Subject: [PATCH] Game menu dialog: add more space between the Quit button and other buttons to reduce chances of clicking on it by mistake --- qcsrc/menu/xonotic/dialog_gamemenu.qc | 1 + qcsrc/menu/xonotic/dialog_gamemenu.qh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/xonotic/dialog_gamemenu.qc b/qcsrc/menu/xonotic/dialog_gamemenu.qc index 3467ddf72..6374f370a 100644 --- a/qcsrc/menu/xonotic/dialog_gamemenu.qc +++ b/qcsrc/menu/xonotic/dialog_gamemenu.qc @@ -40,6 +40,7 @@ void XonoticGameMenuDialog_fill(entity me) me.TR(me); me.TR(me); me.TD(me, 1, 1, e = makeXonoticLeaveMatchButton('0 0 0', COMMANDBUTTON_CLOSE)); + me.TR(me); me.TR(me); me.TD(me, 1, 1, e = makeXonoticCommandButton(_("Quit Xonotic"), '1 0 0', "echo ]quit; quit", 0)); } diff --git a/qcsrc/menu/xonotic/dialog_gamemenu.qh b/qcsrc/menu/xonotic/dialog_gamemenu.qh index b0d12ea60..56ba58049 100644 --- a/qcsrc/menu/xonotic/dialog_gamemenu.qh +++ b/qcsrc/menu/xonotic/dialog_gamemenu.qh @@ -7,7 +7,7 @@ CLASS(XonoticGameMenuDialog, XonoticRootDialog) ATTRIB(XonoticGameMenuDialog, title, string, _("Game menu")); ATTRIB(XonoticGameMenuDialog, color, vector, SKINCOLOR_DIALOG_QUIT); ATTRIB(XonoticGameMenuDialog, intendedWidth, float, 0.3); - ATTRIB(XonoticGameMenuDialog, rows, float, 12); + ATTRIB(XonoticGameMenuDialog, rows, float, 13); ATTRIB(XonoticGameMenuDialog, columns, float, 1); ATTRIB(XonoticGameMenuDialog, name, string, "GameMenu"); ATTRIB(XonoticGameMenuDialog, requiresConnection, bool, true); -- 2.39.2