X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fgamecommand.qc;h=4b2b9cf0c921345dd48d4032b745a9971b2600b3;hb=b308e9ceaffe757bfa0c6bde9bdb52d85cac3e83;hp=971cfa243d04c0657726b27f98e1f8d11fb37fc8;hpb=888b3fcf30a8003ecd89460a0535ed77ddbb1377;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/gamecommand.qc b/qcsrc/menu/gamecommand.qc index 971cfa243..4b2b9cf0c 100644 --- a/qcsrc/menu/gamecommand.qc +++ b/qcsrc/menu/gamecommand.qc @@ -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") {