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