|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "cl_mapvoting.qh"#include "net.qh"#include <client/draw.qh>#include <client/hud/_mod.qh>#include <client/hud/panel/scoreboard.qh>#include <common/util.qh>Go to the source code of this file.
Macros | |
| #define | IMPULSE_ARROW_CASE(key, func) |
| #define | IMPULSE_NUM_CASE(num, imp_num) |
Variables | |
| const float | MV_FADETIME = 0.2 |
| float | xmax |
| float | xmin |
| float | ymax |
| float | ymin |
| #define IMPULSE_ARROW_CASE | ( | key, | |
| func ) |
Referenced by MapVote_InputEvent().
| #define IMPULSE_NUM_CASE | ( | num, | |
| imp_num ) |
Referenced by MapVote_InputEvent().
Definition at line 599 of file cl_mapvoting.qc.
References argv(), entity(), ftos(), localcmd(), LOG_INFO, mv_pk3list, mv_preview, PreviewExists(), stoi, and TC.
Referenced by LocalCommand_mv_download(), and MapVote_CheckPK3().
| void GameTypeVote_DrawGameTypeItem | ( | vector | pos, |
| float | maxh, | ||
| float | tsize, | ||
| string | gtype, | ||
| string | pic, | ||
| int | _count, | ||
| int | id, | ||
| int | most_votes ) |
Definition at line 72 of file cl_mapvoting.qc.
References alpha, argv(), autocvar_hud_panel_mapvote_highlight_border, draw_beginBoldFont, draw_endBoldFont, drawborderlines(), drawfill, DRAWFLAG_NORMAL, drawpic, drawstring, eX, eY, getWrappedLine(), getWrappedLine_remaining, GTV_AVAILABLE, gtv_text_size, gtv_text_size_small, hud_fontsize, MapVote_FormatItem(), MapVote_RGB(), max(), min(), mv_data, mv_desc, MV_FADETIME, mv_flags, mv_flags_start, mv_ownvote, mv_reduce_alpha, mv_select_lasttime, mv_selection, mv_tie_winner, panel_fg_alpha, sqrt(), stringwidth_colors(), TC, time, tokenizebyseparator, and vector.
Referenced by MapVote_Draw().
Definition at line 650 of file cl_mapvoting.qc.
References MapVote_CheckPK3(), mv_abstain, mv_count, mv_preview, PreviewExists(), and TC.
Referenced by MapVote_ReadOption().
Definition at line 633 of file cl_mapvoting.qc.
References Cmd_MapVote_MapDownload(), entity(), itos, localcmd(), mv_pk3list, spawn, strcat(), TC, and tokenize_console.
Referenced by MapVote_CheckPic().
Draws map vote or gametype vote.
Definition at line 386 of file cl_mapvoting.qc.
References bound(), ceil(), chat_posy, chat_sizey, count_seconds, draw_beginBoldFont, draw_endBoldFont, DRAWFLAG_NORMAL, drawstring, gametypevote, GameTypeVote_DrawGameTypeItem(), gtv_text_size, gtv_text_size_small, hud_fontsize, HUD_GetFontsize(), HUD_GetTableSize_BestItemAR(), HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), HUD_Scale_Disable(), MapVote_DrawAbstain(), MapVote_DrawMapItem(), MapVote_DrawMapPicture(), MapVote_DrawSuggester(), MapVote_GridVec(), MapVote_Selection(), max(), min(), mv_abstain, mv_active, mv_chosenmap, mv_columns, mv_count_real, mv_entries, mv_pics, mv_preview, mv_reduce_alpha, mv_reduce_time, mv_select_lasttime, mv_selection, mv_suggester, mv_tie_winner, mv_timeout, mv_votes, mv_winner, mv_winner_alpha, mv_winner_time, panel_bg_border, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, sqrt(), stringwidth, time, vec2, vector, vid_conheight, vid_conwidth, void, xmax, xmin, ymax, and ymin.
Definition at line 12 of file cl_mapvoting.qc.
References HUD_Write_Cvar.
Definition at line 299 of file cl_mapvoting.qc.
References DRAWFLAG_NORMAL, drawstring, hud_fontsize, MapVote_FormatItem(), MapVote_RGB(), mv_winner, mv_winner_alpha, panel_fg_alpha, stringwidth, and vector.
Referenced by MapVote_Draw().
| void MapVote_DrawMapItem | ( | vector | pos, |
| float | isize, | ||
| float | tsize, | ||
| string | map, | ||
| string | pic, | ||
| int | _count, | ||
| int | id, | ||
| int | most_votes ) |
Definition at line 221 of file cl_mapvoting.qc.
References autocvar_hud_panel_mapvote_highlight_border, draw_beginBoldFont, draw_endBoldFont, drawborderlines(), drawfill, DRAWFLAG_NORMAL, drawstring, GTV_AVAILABLE, hud_fontsize, MapVote_DrawMapPicture(), MapVote_FormatItem(), MapVote_RGB(), max(), min(), MV_FADETIME, mv_flags, mv_ownvote, mv_reduce_alpha, mv_select_lasttime, mv_selection, mv_tie_winner, mv_winner, mv_winner_alpha, panel_fg_alpha, sqrt(), stringwidth_nocolors(), TC, time, and vector.
Referenced by MapVote_Draw().
Definition at line 208 of file cl_mapvoting.qc.
References drawfill, DRAWFLAG_NORMAL, drawgetimagesize(), drawpic, and vector.
Referenced by MapVote_Draw(), and MapVote_DrawMapItem().
Definition at line 311 of file cl_mapvoting.qc.
References ColorTranslateRGB(), drawcolorcodedstring, DRAWFLAG_NORMAL, GTV_AVAILABLE, hud_fontsize, MV_FADETIME, mv_flags, mv_selection, mv_suggester, mv_suggester_cache, mv_suggester_cachetime, mv_winner, panel_fg_alpha, sqrt(), stringwidth, time, and vector.
Referenced by MapVote_Draw().
Definition at line 36 of file cl_mapvoting.qc.
References GTV_AVAILABLE, itos, mv_detail, mv_flags, strcat(), stringwidth_nocolors(), TC, textShortenToWidth(), and vector.
Referenced by GameTypeVote_DrawGameTypeItem(), MapVote_DrawAbstain(), and MapVote_DrawMapItem().
Definition at line 734 of file cl_mapvoting.qc.
References hudShiftState, imp, IMPULSE_ARROW_CASE, IMPULSE_NUM_CASE, isdemo(), K_ALT, K_CTRL, K_DOWNARROW, K_ENTER, K_KP_ENTER, K_LEFTARROW, K_MOUSE1, K_MOUSE2, K_RIGHTARROW, K_SHIFT, K_SPACE, K_UPARROW, MapVote_MoveDown(), MapVote_MoveLeft(), MapVote_MoveRight(), MapVote_MoveUp(), MapVote_WritePlayerVote(), min(), mousepos, mv_active, mv_count, mv_mouse_selection, mv_selection, mv_selection_keyboard, mv_winner, S_ALT, S_CTRL, S_SHIFT, and TC.
Referenced by CSQC_InputEvent().
Definition at line 711 of file cl_mapvoting.qc.
References GTV_AVAILABLE, imp, MapVote_MoveDown(), mv_columns, mv_count, mv_flags, mv_ownvote, and TC.
Referenced by MapVote_InputEvent(), and MapVote_MoveDown().
Definition at line 665 of file cl_mapvoting.qc.
References GTV_AVAILABLE, imp, MapVote_MoveLeft(), mv_count, mv_flags, mv_ownvote, and TC.
Referenced by MapVote_InputEvent(), and MapVote_MoveLeft().
Definition at line 677 of file cl_mapvoting.qc.
References GTV_AVAILABLE, imp, MapVote_MoveRight(), mv_count, mv_flags, mv_ownvote, and TC.
Referenced by MapVote_InputEvent(), and MapVote_MoveRight().
Definition at line 689 of file cl_mapvoting.qc.
References ceil(), GTV_AVAILABLE, imp, MapVote_MoveUp(), mv_columns, mv_count, mv_flags, mv_ownvote, and TC.
Referenced by MapVote_InputEvent(), and MapVote_MoveUp().
Definition at line 57 of file cl_mapvoting.qc.
References eZ, GTV_AVAILABLE, MV_FADETIME, mv_flags, mv_ownvote, mv_select_lasttime, mv_selection, sqrt(), TC, time, and vector.
Referenced by GameTypeVote_DrawGameTypeItem(), MapVote_DrawAbstain(), and MapVote_DrawMapItem().
Definition at line 357 of file cl_mapvoting.qc.
References mousepos, mv_abstain, mv_count_real, mv_mouse_selection, mv_selection, mv_selection_keyboard, mv_winner, and vector.
Referenced by MapVote_Draw().
Definition at line 22 of file cl_mapvoting.qc.
References autocvar_cl_readpicture_force, fexists(), name, and strcat().
Referenced by Cmd_MapVote_MapDownload(), GameTypeVote_ReadOption(), and MapVote_CheckPic().
| const float MV_FADETIME = 0.2 |
Definition at line 20 of file cl_mapvoting.qc.
Referenced by GameTypeVote_DrawGameTypeItem(), MapVote_DrawMapItem(), MapVote_DrawSuggester(), and MapVote_RGB().
| float xmax |
Definition at line 18 of file cl_mapvoting.qc.
Referenced by MapVote_Draw().
| float xmin |
Definition at line 18 of file cl_mapvoting.qc.
Referenced by MapVote_Draw().
| float ymax |
Definition at line 18 of file cl_mapvoting.qc.
Referenced by MapVote_Draw().
| float ymin |
Definition at line 18 of file cl_mapvoting.qc.
Referenced by MapVote_Draw().