From 7d77715d7c1d00b2cb38fb12f7000384bb41cbdc Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 28 Oct 2015 21:54:47 +0100 Subject: [PATCH] Show the quickmenu help with the command "quickmenu help" --- qcsrc/client/commands/cl_cmd.qc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/commands/cl_cmd.qc b/qcsrc/client/commands/cl_cmd.qc index db4d59a5c..6af90c022 100644 --- a/qcsrc/client/commands/cl_cmd.qc +++ b/qcsrc/client/commands/cl_cmd.qc @@ -270,6 +270,13 @@ void LocalCommand_hud(int request, int argc) case "quickmenu": { + if (argv(2) == "help") + { + LOG_INFO(" quickmenu [[default | file | \"\"] submenu]\n"); + LOG_INFO("Called without options (or with \"\") loads either the default quickmenu or a quickmenu file if hud_panel_quickmenu_file is set to a valid filename.\n"); + LOG_INFO("A submenu name can be given to open the quickmenu directly in a submenu; it requires to specify 'default', 'file' or '\"\"' option.\n"); + return; + } if (QuickMenu_IsOpened()) QuickMenu_Close(); else @@ -339,10 +346,7 @@ void LocalCommand_hud(int request, int argc) LOG_INFO(" 'configname' is the name to save to for \"save\" action,\n"); LOG_INFO(" 'radartoggle' is to control hud_panel_radar_maximized for \"radar\" action,\n"); LOG_INFO(" and 'layout' is how to organize the scoreboard columns for the set action.\n"); - LOG_INFO(" quickmenu [[default | file | \"\"] submenu]\n"); - LOG_INFO(" Called without options (or with " ") loads either the default quickmenu or a quickmenu file if hud_panel_quickmenu_file is set to a valid filename.\n"); - LOG_INFO(" Submenu option allows to open quickmenu directly in a submenu, it requires to specify 'default', 'file' or '\"\"' option.\n"); - LOG_INFO(" Full list of commands here: \"configure, minigame, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n"); + LOG_INFO(" Full list of commands here: \"configure, quickmenu, minigame, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n"); return; } } -- 2.39.2