1 #ifndef DIALOG_HUDPANEL_QUICKMENU_H
2 #define DIALOG_HUDPANEL_QUICKMENU_H
3 #include "rootdialog.qc"
4 CLASS(XonoticHUDQuickMenuDialog, XonoticRootDialog)
5 METHOD(XonoticHUDQuickMenuDialog, fill, void(entity));
6 ATTRIB(XonoticHUDQuickMenuDialog, title, string, _("Quick Menu Panel"))
7 ATTRIB(XonoticHUDQuickMenuDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
8 ATTRIB(XonoticHUDQuickMenuDialog, intendedWidth, float, 0.4)
9 ATTRIB(XonoticHUDQuickMenuDialog, rows, float, 15)
10 ATTRIB(XonoticHUDQuickMenuDialog, columns, float, 4)
11 ATTRIB(XonoticHUDQuickMenuDialog, name, string, "HUDquickmenu")
12 ENDCLASS(XonoticHUDQuickMenuDialog)
16 void XonoticHUDQuickMenuDialog_fill(entity me)
19 string panelname = "quickmenu";
21 DIALOG_HUDPANEL_COMMON_NOTOGGLE();
24 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Text alignment:")));
27 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_quickmenu_align", "0", _("Left")));
28 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_quickmenu_align", "0.5", _("Center")));
29 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_quickmenu_align", "1", _("Right")));