]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/gamecommand.qc
inventory panel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / gamecommand.qc
index 971cfa243d04c0657726b27f98e1f8d11fb37fc8..d2ef187664439735b203728530543167fc54b477 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;
        }