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