]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_vote.c
Merge branch 'master' into terencehill/menu_tooltips_2
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_hudpanel_vote.c
1 #ifdef INTERFACE
2 CLASS(XonoticHUDVoteDialog) EXTENDS(XonoticRootDialog)
3         METHOD(XonoticHUDVoteDialog, fill, void(entity))
4         ATTRIB(XonoticHUDVoteDialog, title, string, _("Vote Panel"))
5         ATTRIB(XonoticHUDVoteDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6         ATTRIB(XonoticHUDVoteDialog, intendedWidth, float, 0.4)
7         ATTRIB(XonoticHUDVoteDialog, rows, float, 15)
8         ATTRIB(XonoticHUDVoteDialog, columns, float, 4)
9         ATTRIB(XonoticHUDVoteDialog, name, string, "HUDvote")
10 ENDCLASS(XonoticHUDVoteDialog)
11 #endif
12
13 #ifdef IMPLEMENTATION
14 void XonoticHUDVoteDialog_fill(entity me)
15 {
16         entity e;
17         string panelname = "vote";
18
19         DIALOG_HUDPANEL_COMMON();
20
21         me.TR(me);
22                 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Alpha after voting:")));
23                 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.1, 1, 0.1, "hud_panel_vote_alreadyvoted_alpha"));
24 }
25 #endif