]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/gamecommand.qc
Merge remote branch 'origin/fruitiex/add_soundchan'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / gamecommand.qc
index 971cfa243d04c0657726b27f98e1f8d11fb37fc8..4b2b9cf0c921345dd48d4032b745a9971b2600b3 100644 (file)
@@ -64,14 +64,8 @@ void GameCommand(string theCommand)
 
        if(argv(0) == "directpanelhudmenu")
        {
-               highlightedPanel = stof(argv(1));
                // switch to a menu item
-               m_goto("HUDOptions");
-
-               // this is here to detect which id the HUDOptions dialog is, i could imagine you need a similar system for the per-panel dialogs...
-               entity panelvar;
-               panelvar = findstring(NULL, name, "HUDOptions");
-               panelvar.change(panelvar);
+               m_goto(strcat("HUD", argv(1)));
                return;
        }
 
@@ -100,6 +94,12 @@ void GameCommand(string theCommand)
                return;
        }
 
+       if(argv(0) == "setcompression")
+       {
+               updateCompression();
+               return;
+       }
+
 #if 0
        if(argv(0) == "tokentest")
        {