]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/command/cl_cmd.qc
Merge branch 'master' into Mario/quickmenu_merge
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / command / cl_cmd.qc
index 9aae77dde687ef5417a61b71ae29b4524365e963..8d5e8ac58478a4441bf8c2ea473fbbf1b6351e31 100644 (file)
@@ -238,6 +238,15 @@ void LocalCommand_hud(float request, float argc)
                                        return;
                                }
 
+                               case "quickmenu":
+                               {
+                                       if(argc == 2 && HUD_QuickMenu_IsOpened())
+                                               HUD_QuickMenu_Close();
+                                       else
+                                               HUD_QuickMenu_Open();
+                                       return;
+                               }
+
                                case "save":
                                {
                                        if(argv(2))
@@ -283,7 +292,7 @@ void LocalCommand_hud(float request, float argc)
                        print("  'configname' is the name to save to for \"save\" action,\n");
                        print("  'radartoggle' is to control hud_panel_radar_maximized for \"radar\" action,\n");
                        print("  and 'layout' is how to organize the scoreboard columns for the set action.\n");
-                       print("  Full list of commands here: \"configure, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n");
+                       print("  Full list of commands here: \"configure, quickmenu, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n");
                        return;
                }
        }