]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_score.qc
Merge branch 'master' into Mario/turrets
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudpanel_score.qc
1 #ifdef INTERFACE
2 CLASS(XonoticHUDScoreDialog) EXTENDS(XonoticRootDialog)
3         METHOD(XonoticHUDScoreDialog, fill, void(entity))
4         ATTRIB(XonoticHUDScoreDialog, title, string, _("Score Panel"))
5         ATTRIB(XonoticHUDScoreDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6         ATTRIB(XonoticHUDScoreDialog, intendedWidth, float, 0.4)
7         ATTRIB(XonoticHUDScoreDialog, rows, float, 15)
8         ATTRIB(XonoticHUDScoreDialog, columns, float, 4)
9         ATTRIB(XonoticHUDScoreDialog, name, string, "HUDscore")
10         ATTRIB(XonoticHUDScoreDialog, requiresConnection, float, true)
11 ENDCLASS(XonoticHUDScoreDialog)
12 #endif
13
14 #ifdef IMPLEMENTATION
15 void XonoticHUDScoreDialog_fill(entity me)
16 {
17         entity e;
18         string panelname = "score";
19
20         DIALOG_HUDPANEL_COMMON();
21
22         me.TR(me);
23                 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Score:")));
24         me.TR(me);
25                 me.TDempty(me, 0.2);
26                 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Rankings:")));
27                 me.TD(me, 1, 2.6/3, e = makeXonoticRadioButton(1, "hud_panel_score_rankings", "0", _("Off")));
28                 me.TD(me, 1, 2.6/3, e = makeXonoticRadioButton(1, "hud_panel_score_rankings", "1", _("And me")));
29                 me.TD(me, 1, 2.6/3, e = makeXonoticRadioButton(1, "hud_panel_score_rankings", "2", _("Pure")));
30 }
31 #endif