From: Samual Date: Wed, 9 Nov 2011 06:17:23 +0000 (-0500) Subject: Work on hud client command X-Git-Tag: xonotic-v0.6.0~188^2~28^2~226 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=039219eabdf213422de24b84d8791981ff9bc49f;p=xonotic%2Fxonotic-data.pk3dir.git Work on hud client command --- diff --git a/qcsrc/client/gamecommand.qc b/qcsrc/client/gamecommand.qc index ddf9ef051..6863d737d 100644 --- a/qcsrc/client/gamecommand.qc +++ b/qcsrc/client/gamecommand.qc @@ -147,7 +147,31 @@ void GameCommand_hud(float request, float argc) { case GC_REQUEST_COMMAND: { - + switch(argv(1)) + { + case "configure": + { + cvar_set("_hud_configure", ftos(!autocvar__hud_configure)); + return; + } + + case "save": + { + if(argv(2)) + { + HUD_Panel_ExportCfg(argv(2)); + return; + } + else + { + break; // go to usage, we're missing the paramater needed here. + } + } + + case "radar": + { + } + } return; }