From: terencehill Date: Wed, 28 Oct 2015 20:54:47 +0000 (+0100) Subject: Show the quickmenu help with the command "quickmenu help" X-Git-Tag: xonotic-v0.8.2~1687^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7d77715d7c1d00b2cb38fb12f7000384bb41cbdc;p=xonotic%2Fxonotic-data.pk3dir.git Show the quickmenu help with the command "quickmenu help" --- 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; } }