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