]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_timer.qc
Sort menu classes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudpanel_timer.qc
1 #ifndef DIALOG_HUDPANEL_TIMER_H
2 #define DIALOG_HUDPANEL_TIMER_H
3 CLASS(XonoticHUDTimerDialog, XonoticRootDialog)
4         METHOD(XonoticHUDTimerDialog, fill, void(entity))
5         ATTRIB(XonoticHUDTimerDialog, title, string, _("Timer Panel"))
6         ATTRIB(XonoticHUDTimerDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
7         ATTRIB(XonoticHUDTimerDialog, intendedWidth, float, 0.4)
8         ATTRIB(XonoticHUDTimerDialog, rows, float, 15)
9         ATTRIB(XonoticHUDTimerDialog, columns, float, 4)
10         ATTRIB(XonoticHUDTimerDialog, name, string, "HUDtimer")
11         ATTRIB(XonoticHUDTimerDialog, requiresConnection, float, true)
12 ENDCLASS(XonoticHUDTimerDialog)
13 #endif
14
15 #ifdef IMPLEMENTATION
16 void XonoticHUDTimerDialog_fill(entity me)
17 {
18         entity e;
19         string panelname = "timer";
20
21         DIALOG_HUDPANEL_COMMON();
22
23         me.TR(me);
24                 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Timer:")));
25         me.TR(me);
26                 me.TDempty(me, 0.2);
27                 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_timer_increment", _("Show elapsed time")));
28 }
29 #endif