From: terencehill Date: Thu, 31 Mar 2022 15:22:37 +0000 (+0200) Subject: Game menu dialog: add more space between the Quit button and other buttons to reduce... X-Git-Tag: xonotic-v0.8.5~119 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c16d8ecf9757475c4faa62154354a4009b08984;p=xonotic%2Fxonotic-data.pk3dir.git Game menu dialog: add more space between the Quit button and other buttons to reduce chances of clicking on it by mistake --- 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);