// 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_sync "menu_cmd sync"
bind f5 menu_showteamselect
if(time - prevMouseClickedTime < 0.4 && prevMouseClicked == 0 && prevMouseClickedPos == mousepos)
{
mouseClicked = 0; // to prevent spam, I guess.
- print("Doubleclick!\n");
+ localcmd("menu_showhudoptions\n");
return;
}
#include "xonotic/cvarlist.c"
#include "xonotic/dialog_settings_misc_cvars.c"
#include "xonotic/dialog_hudsetup_exit.c"
+#include "xonotic/dialog_hudpanel_options.c"
--- /dev/null
+#ifdef INTERFACE
+CLASS(XonoticHUDOptionsDialog) EXTENDS(XonoticRootDialog)
+ METHOD(XonoticHUDOptionsDialog, fill, void(entity))
+ ATTRIB(XonoticHUDOptionsDialog, title, string, "HUD Setup")
+ ATTRIB(XonoticHUDOptionsDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
+ ATTRIB(XonoticHUDOptionsDialog, intendedWidth, float, 0.4)
+ ATTRIB(XonoticHUDOptionsDialog, rows, float, 15)
+ ATTRIB(XonoticHUDOptionsDialog, columns, float, 4)
+ ATTRIB(XonoticHUDOptionsDialog, name, string, "HUDOptions")
+ENDCLASS(XonoticHUDOptionsDialog)
+
+#endif
+
+#ifdef IMPLEMENTATION
+void fillXonoticHUDOptionsDialog(entity me)
+{
+ entity e;
+ me.TR(me);
+
+}
+#endif
entity e;
me.TR(me);
me.TD(me, 1, 4, makeXonoticTextLabel(0, "Panel Settings:"));
-
me.TR(me);
me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_bg", "Panel Background"));
me.TR(me);
me.TR(me);
me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_configure_checkcollisions", "Collision Check"));
me.TR(me);
+
me.TR(me);
me.TD(me, 1, 4, makeXonoticTextLabel(0, "Dock Settings:"));
me.TD(me, 1, 2, e = makeXonoticTextLabel(0, "Dock Alpha:"));
me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.01, "hud_dock_alpha"));
me.TR(me);
+
me.TR(me);
me.TD(me, 1, 4, makeXonoticTextLabel(0, "Grid Settings:"));
i = spawnXonoticHUDExitDialog();
i.configureDialog(i);
me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
+
+ i = spawnXonoticHUDOptionsDialog();
+ i.configureDialog(i);
+ me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
me.advancedDialog = i = spawnXonoticAdvancedDialog();
i.configureDialog(i);