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