1 #include "dialog_hudpanel_centerprint.qh"
4 #include "textlabel.qh"
6 #include "radiobutton.qh"
8 void XonoticHUDCenterprintDialog_fill(entity me)
11 string panelname = "centerprint";
13 DIALOG_HUDPANEL_COMMON();
17 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Message duration:")));
18 me.TD(me, 1, 2.6, e = makeXonoticSlider(1, 10, 1, "hud_panel_centerprint_time"));
21 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Fade time:")));
22 me.TD(me, 1, 2.6, e = makeXonoticSlider(0, 1, 0.05, "hud_panel_centerprint_fade_out"));
25 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_centerprint_flip", _("Flip messages order")));
27 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Text alignment:")));
30 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_centerprint_align", "0", _("Left")));
31 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_centerprint_align", "0.5", _("Center")));
32 me.TD(me, 1, 3.8/3, e = makeXonoticRadioButton(3, "hud_panel_centerprint_align", "1", _("Right")));
35 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Font scale:")));
36 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.5, 2, 0.1, "hud_panel_centerprint_fontscale"));