1 #include "dialog_settings_game_hudconfirm.qh"
3 #include "textlabel.qh"
6 void HUDSetup_Start(entity me, entity btn)
8 if (!(gamestatus & (GAME_CONNECTED | GAME_ISSERVER)))
9 localcmd("map _hudsetup\n");
11 localcmd("togglemenu 0\n");
13 localcmd("_hud_configure 1\n");
16 void XonoticHUDConfirmDialog_fill(entity me)
21 me.TD(me, 1, 2, e = makeXonoticTextLabel(0.5, _("In order for the HUD editor to show, you must first be in game.")));
23 me.TD(me, 1, 2, e = makeXonoticTextLabel(0.5, _("Do you wish to start a local game to set up the HUD?")));
26 me.TD(me, 1, 1, e = makeXonoticButton(_("Yes"), '1 0 0'));
27 e.onClick = HUDSetup_Start;
29 me.TD(me, 1, 1, e = makeXonoticButton(_("No"), '0 1 0'));
30 e.onClick = Dialog_Close;