// alias for switching the teamselect menu
alias menu_showteamselect "menu_cmd directmenu TeamSelect"
alias menu_showhudexit "menu_cmd directmenu HUDExit"
-alias menu_showhudoptions "menu_cmd directmenu HUDOptions"
+alias menu_showhudoptions "menu_cmd directpanelhudmenu $*"
alias menu_sync "menu_cmd sync"
bind f5 menu_showteamselect
disable_menu_alphacheck = 2;
menu_enabled = 1;
menu_enabled_time = time;
- localcmd("menu_showhudoptions\n");
+ localcmd("menu_showhudoptions ", ftos(highlightedPanel), "\n");
return;
}
if(prevMouseClicked == 0)
return;
}
+ if(argv(0) == "directpanelhudmenu")
+ {
+ // switch to a menu item
+ m_goto("HUDOptions");
+ changeXonoticHUDPanel(stof(argv(1)));
+ return;
+ }
+
if(argv(0) == "skinselect")
{
m_goto_skin_selector();
entity e;
me.TR(me);
+}
+
+void changeXonoticHUDPanel(float id)
+{
+ print("Yay!", ftos(id), "\n");
+
}
#endif