]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_timer.c
Add Archer to the credits
[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         ATTRIB(XonoticHUDTimerDialog, requiresConnection, float, TRUE)
11 ENDCLASS(XonoticHUDTimerDialog)
12 #endif
13
14 #ifdef IMPLEMENTATION
15 void XonoticHUDTimerDialog_fill(entity me)
16 {
17         entity e;
18         string panelname = "timer";
19
20         DIALOG_HUDPANEL_COMMON();
21
22         me.TR(me);
23                 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Timer:")));
24         me.TR(me);
25                 me.TDempty(me, 0.2);
26                 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_timer_increment", _("Show elapsed time")));
27 }
28 #endif