]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/mapvoting.qh
Merge branch 'master' into Mario/physics
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mapvoting.qh
1 #ifndef MAPVOTING_H
2 #define MAPVOTING_H
3
4 int mv_num_maps;
5
6 float mv_active;
7 string mv_maps[MAPVOTE_COUNT];
8 string mv_pics[MAPVOTE_COUNT];
9 string mv_pk3[MAPVOTE_COUNT];
10 float mv_preview[MAPVOTE_COUNT];
11 float mv_votes[MAPVOTE_COUNT];
12 float mv_avail[MAPVOTE_COUNT];
13 float mv_avail_start[MAPVOTE_COUNT];
14 entity mv_pk3list;
15 float mv_abstain;
16 float mv_ownvote;
17 float mv_detail;
18 float mv_timeout;
19 float mv_top2_time;
20 float mv_top2_alpha;
21
22 vector mv_mousepos;
23 int mv_selection;
24 int mv_columns;
25 int mv_mouse_selection;
26 int mv_selection_keyboard;
27
28 float gametypevote;
29 string mapvote_chosenmap;
30 vector gtv_text_size;
31 vector gtv_text_size_small;
32
33 string MapVote_FormatMapItem(int id, string map, float count, float maxwidth, vector fontsize);
34
35 string GameTypeVote_DescriptionByID(int id);
36
37 vector MapVote_RGB(int id);
38
39 void GameTypeVote_DrawGameTypeItem(vector pos, float maxh, float tsize, string gtype, string pic, float count, int id);
40
41 void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, string pic, float count, int id);
42
43 void MapVote_DrawAbstain(vector pos, float isize, float tsize, float count, int id);
44
45 vector MapVote_GridVec(vector gridspec, int i, int m);
46
47 float MapVote_Selection(vector topleft, vector cellsize, float rows, float columns);
48
49 void MapVote_Draw();
50
51 void Cmd_MapVote_MapDownload(float argc);
52
53 void MapVote_CheckPK3(string pic, string pk3, int id);
54
55 void MapVote_CheckPic(string pic, string pk3, int id);
56
57 void MapVote_ReadMask();
58
59 const int NUM_SSDIRS = 4;
60 string ssdirs[NUM_SSDIRS];
61 int n_ssdirs;
62 void MapVote_Init();
63
64 void MapVote_SendChoice(float index);
65
66 int MapVote_MoveLeft(int pos);
67 int MapVote_MoveRight(int pos);
68 int MapVote_MoveUp(int pos);
69
70 int MapVote_MoveDown(int pos);
71
72 float MapVote_InputEvent(float bInputType, float nPrimary, float nSecondary);
73
74 void MapVote_UpdateMask();
75
76 void MapVote_UpdateVotes();
77
78 void Ent_MapVote();
79
80 void Net_MapVote_Picture();
81 #endif