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)
15 void XonoticHUDVoteDialog_fill(entity me)
18 string panelname = "vote";
20 DIALOG_HUDPANEL_COMMON();
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"));