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