// must be at the bottom of this file:
// alias for switching the teamselect menu
alias menu_showteamselect "menu_cmd directmenu TeamSelect"
+alias menu_showhudexit "menu_cmd directmenu HUDExit"
alias menu_sync "menu_cmd sync"
bind f5 menu_showteamselect
}
}
else if(nPrimary == K_ESCAPE)
- cvar_set("_hud_configure", "0");
+ {
+ localcmd("menu_showhudexit\n");
+ }
return true; // Suppress ALL other input
}
#include "xonotic/colorpicker.c"
#include "xonotic/cvarlist.c"
#include "xonotic/dialog_settings_misc_cvars.c"
+#include "xonotic/dialog_hudsetup_exit.c"
i = spawnXonoticTeamSelectDialog();
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
+
+ i = spawnXonoticHUDExitDialog();
+ i.configureDialog(i);
+ me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
me.advancedDialog = i = spawnXonoticAdvancedDialog();
i.configureDialog(i);