]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2727 "New esc-menu shouldn't open a standard settings page"
authorterencehill <piuntn@gmail.com>
Thu, 28 Jul 2022 09:01:34 +0000 (11:01 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 28 Jul 2022 09:01:34 +0000 (11:01 +0200)
qcsrc/menu/command/menu_cmd.qc
qcsrc/menu/xonotic/dialog_gamemenu.qc
qcsrc/menu/xonotic/dialog_settings.qh

index 2f97712b676a1dc67f0eb5bbbf2739507bb5f950..2003a7eeb7186c7e959d9d64e0c003a2f5fdb891 100644 (file)
@@ -152,6 +152,12 @@ void GameCommand(string theCommand)
                return;
        }
 
+       if (argv(0) == "settings")
+       {
+               m_goto("settings");
+               return;
+       }
+
        if (argv(0) == "inputsettings")
        {
                m_goto("inputsettings");
index 68d612de37620d44259ac837c4f1204ceb0e7574..a9ba16b4f0ff885f62e1b8773c893964576b2988 100644 (file)
@@ -48,7 +48,7 @@ void XonoticGameMenuDialog_fill(entity me)
                me.TD(me, 1, 0.8, e = makeXonoticCommandButton(_("Profile"), '0 0 0', "menu_cmd profile", 0));
        me.TR(me);
                me.TDempty(me, 0.1);
-               me.TD(me, 1, 0.8, e = makeXonoticCommandButton(_("Settings"), '0 0 0', "menu_cmd videosettings", 0));
+               me.TD(me, 1, 0.8, e = makeXonoticCommandButton(_("Settings"), '0 0 0', "menu_cmd settings", 0));
        me.TR(me);
                me.TDempty(me, 0.1);
                me.TD(me, 1, 0.8, e = makeXonoticCommandButton(_("Input"), '0 0 0', "menu_cmd inputsettings", 0));
index 3564a02e87dd5bb9140f60d7216198992cd6969e..98495709539da99119188c24fefe382ab1a03347 100644 (file)
@@ -4,6 +4,7 @@
 CLASS(XonoticSettingsDialog, XonoticDialog)
        METHOD(XonoticSettingsDialog, fill, void(entity));
        ATTRIB(XonoticSettingsDialog, title, string, _("Settings"));
+       ATTRIB(XonoticSettingsDialog, name, string, "settings");
        ATTRIB(XonoticSettingsDialog, tooltip, string, _("Change the game settings"));
        ATTRIB(XonoticSettingsDialog, color, vector, SKINCOLOR_DIALOG_SETTINGS);
        ATTRIB(XonoticSettingsDialog, intendedWidth, float, 0.96);