]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_hudpanel_vote.c
Merge remote-tracking branch 'origin/mirceakitsune/func_train_beizer_curve'
[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         ATTRIB(XonoticHUDVoteDialog, requiresConnection, float, TRUE)
11 ENDCLASS(XonoticHUDVoteDialog)
12 #endif
13
14 #ifdef IMPLEMENTATION
15 void XonoticHUDVoteDialog_fill(entity me)
16 {
17         entity e;
18         string panelname = "vote";
19
20         DIALOG_HUDPANEL_COMMON();
21
22         me.TR(me);
23                 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Alpha after voting:")));
24                 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.1, 1, 0.1, "hud_panel_vote_alreadyvoted_alpha"));
25 }
26 #endif