]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Work on hud client command
authorSamual <samual@xonotic.org>
Wed, 9 Nov 2011 06:17:23 +0000 (01:17 -0500)
committerSamual <samual@xonotic.org>
Wed, 9 Nov 2011 06:17:23 +0000 (01:17 -0500)
qcsrc/client/gamecommand.qc

index ddf9ef051b547f3013cefb383f2774dda2e8b0e3..6863d737d04ad8790736d67ebf48a13417c609cb 100644 (file)
@@ -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; 
                }