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)
18 void XonoticHUDScoreDialog_fill(entity me)
21 string panelname = "score";
23 DIALOG_HUDPANEL_COMMON();
26 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Score:")));
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")));