1 #ifndef DIALOG_HUDPANEL_CENTERPRINT_H
2 #define DIALOG_HUDPANEL_CENTERPRINT_H
3 CLASS(XonoticHUDCenterprintDialog, XonoticRootDialog)
4 METHOD(XonoticHUDCenterprintDialog, fill, void(entity))
5 ATTRIB(XonoticHUDCenterprintDialog, title, string, _("Centerprint Panel"))
6 ATTRIB(XonoticHUDCenterprintDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
7 ATTRIB(XonoticHUDCenterprintDialog, intendedWidth, float, 0.4)
8 ATTRIB(XonoticHUDCenterprintDialog, rows, float, 15)
9 ATTRIB(XonoticHUDCenterprintDialog, columns, float, 4)
10 ATTRIB(XonoticHUDCenterprintDialog, name, string, "HUDcenterprint")
11 ATTRIB(XonoticHUDCenterprintDialog, requiresConnection, float, true)
12 ENDCLASS(XonoticHUDCenterprintDialog)
16 void XonoticHUDCenterprintDialog_fill(entity me)
19 string panelname = "centerprint";
21 DIALOG_HUDPANEL_COMMON();
25 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Message duration:")));
26 me.TD(me, 1, 2.6, e = makeXonoticSlider(1, 10, 1, "hud_panel_centerprint_time"));
29 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Fade time:")));
30 me.TD(me, 1, 2.6, e = makeXonoticSlider(0, 1, 0.05, "hud_panel_centerprint_fade_out"));
33 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_centerprint_flip", _("Flip messages order")));
35 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Text alignment:")));
38 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_centerprint_align", "0", _("Left")));
39 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_centerprint_align", "0.5", _("Center")));
40 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_centerprint_align", "1", _("Right")));
43 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Font scale:")));
44 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.5, 2, 0.1, "hud_panel_centerprint_fontscale"));