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