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