Xonotic
|
#include "cl_minigames_hud.qh"
#include <client/draw.qh>
#include <client/hud/_mod.qh>
#include <client/hud/hud_config.qh>
#include <client/mapvoting.qh>
#include <common/ent_cs.qh>
#include <common/minigames/minigames.qh>
Go to the source code of this file.
Variables | |
vector | colormod |
entity | HUD_MinigameMenu_activeitem |
entity | HUD_MinigameMenu_entries |
entity | HUD_MinigameMenu_last_entry |
Definition at line 607 of file cl_minigames_hud.qc.
References active_minigame, argv(), autocvar__hud_configure, HUD_MinigameMenu_activeitem, HUD_MinigameMenu_Click(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_entries, HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_last_entry, HUD_mouse_over(), HUD_PANEL, hudShiftState, K_ALT, K_CTRL, K_DOWNARROW, K_END, K_ENTER, K_ESCAPE, K_HOME, K_KP_DOWNARROW, K_KP_END, K_KP_ENTER, K_KP_HOME, K_KP_UPARROW, K_MOUSE1, K_MOUSE16, K_MOUSE2, K_SHIFT, K_SPACE, K_UPARROW, mouseClicked, mousepos, NULL, S_ALT, S_CTRL, S_MOUSE1, S_MOUSE2, S_SHIFT, stof(), strcat(), and tokenize().
Referenced by CSQC_InputEvent().
void HUD_Minigame_Mouse | ( | ) |
Definition at line 738 of file cl_minigames_hud.qc.
References autocvar__hud_configure, HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_MouseInput(), HUD_mouse_over(), HUD_PANEL, and mv_active.
Referenced by HUD_Mouse().
void HUD_MinigameBoard | ( | ) |
Definition at line 46 of file cl_minigames_hud.qc.
References active_minigame, autocvar__hud_configure, entity(), HUD_MinigameMenu_IsOpened(), HUD_Panel_LoadCvars(), minigame_get_descriptor(), NULL, panel_pos, panel_size, and vector().
Definition at line 12 of file cl_minigames_hud.qc.
void HUD_MinigameHelp | ( | ) |
Definition at line 568 of file cl_minigames_hud.qc.
References active_minigame, autocvar__hud_configure, and HUD_MinigameMenu_IsOpened().
Definition at line 22 of file cl_minigames_hud.qc.
void HUD_MinigameMenu | ( | ) |
Definition at line 498 of file cl_minigames_hud.qc.
References HUD_MinigameMenu_Close(), HUD_MinigameMenu_DrawEntry(), HUD_MinigameMenu_IsOpened(), HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), HUD_Scale_Disable(), mv_active, NULL, panel_bg_padding, panel_pos, and panel_size.
Definition at line 148 of file cl_minigames_hud.qc.
References NULL.
Referenced by HUD_Minigame_InputEvent(), HUD_MinigameMenu_Click_ExpandCollapse(), and HUD_MinigameMenu_EraseEntry().
Definition at line 214 of file cl_minigames_hud.qc.
References entity(), flags, HUD_MinigameMenu_activeitem, HUD_MinigameMenu_Click(), HUD_MinigameMenu_entries, HUD_MinigameMenu_last_entry, list_next, and NULL.
Referenced by HUD_MinigameMenu_ClickCreate(), HUD_MinigameMenu_ClickCurrentGame(), HUD_MinigameMenu_ClickInvite(), and HUD_MinigameMenu_ClickJoin().
Definition at line 251 of file cl_minigames_hud.qc.
References entity(), FOREACH, HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_ClickCreate_Entry(), HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_SpawnSubEntry(), minigame_texture(), prev, strcat(), and strzone().
Definition at line 207 of file cl_minigames_hud.qc.
References minigame_cmd, and netname.
Referenced by HUD_MinigameMenu_ClickCreate().
Definition at line 358 of file cl_minigames_hud.qc.
References HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_InsertEntry(), and HUD_MinigameMenu_SpawnSubEntry().
Definition at line 341 of file cl_minigames_hud.qc.
References active_minigame, and netname.
Referenced by HUD_MinigameMenu_CustomEntry().
Definition at line 317 of file cl_minigames_hud.qc.
References entity(), findfloat(), ftos(), HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_ClickInvite_Entry(), HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_SpawnSubEntry(), maxclients, minigame_playerslot, NULL, ping, player_localnum, playerslots, prev, and strzone().
Definition at line 311 of file cl_minigames_hud.qc.
References minigame_cmd, and netname.
Referenced by HUD_MinigameMenu_ClickInvite().
Definition at line 275 of file cl_minigames_hud.qc.
References active_minigame, classname, entity(), find(), HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_ClickJoin_Entry(), HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_SpawnSubEntry(), minigame_texture(), NULL, prev, strcat(), and strzone().
Definition at line 268 of file cl_minigames_hud.qc.
References HUD_MinigameMenu_EraseEntry(), minigame_cmd, and netname.
Referenced by HUD_MinigameMenu_ClickJoin().
Definition at line 304 of file cl_minigames_hud.qc.
References deactivate_minigame(), and minigame_cmd.
Definition at line 378 of file cl_minigames_hud.qc.
References entity(), HUD_MinigameMenu_activeitem, HUD_MinigameMenu_entries, HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_last_entry, and NULL.
Referenced by deactivate_minigame(), HUD_Minigame_InputEvent(), HUD_MinigameMenu(), MUTATOR_HOOKFUNCTION(), and Shutdown().
void HUD_MinigameMenu_CurrentButton | ( | ) |
Definition at line 395 of file cl_minigames_hud.qc.
References active_minigame, entity(), HUD_MinigameMenu_EraseEntry(), HUD_MinigameMenu_last_entry, HUD_MinigameMenu_SpawnEntry(), and NULL.
Referenced by activate_minigame(), deactivate_minigame(), and minigame_autoclean_entity().
Definition at line 348 of file cl_minigames_hud.qc.
References entity(), HUD_MinigameMenu_ClickCustomEntry(), HUD_MinigameMenu_InsertEntry(), and HUD_MinigameMenu_SpawnSubEntry().
Definition at line 491 of file cl_minigames_hud.qc.
References DRAWFLAG_NORMAL, minigame_drawcolorcodedstring_trunc(), and panel_fg_alpha.
Definition at line 485 of file cl_minigames_hud.qc.
References DRAWFLAG_NORMAL, minigame_drawstring_trunc(), and panel_fg_alpha.
Referenced by HUD_MinigameMenu().
Definition at line 158 of file cl_minigames_hud.qc.
References HUD_MinigameMenu_activeitem, HUD_MinigameMenu_Click(), HUD_MinigameMenu_entries, HUD_MinigameMenu_last_entry, and NULL.
Referenced by HUD_MinigameMenu_ClickJoin_Entry(), and HUD_MinigameMenu_CurrentButton().
Definition at line 27 of file cl_minigames_hud.qc.
Definition at line 125 of file cl_minigames_hud.qc.
References HUD_MinigameMenu_entries, HUD_MinigameMenu_last_entry, and prev.
Referenced by HUD_MinigameMenu_ClickCreate(), HUD_MinigameMenu_ClickCurrentGame(), HUD_MinigameMenu_ClickInvite(), HUD_MinigameMenu_ClickJoin(), HUD_MinigameMenu_CustomEntry(), and HUD_MinigameMenu_Open().
bool HUD_MinigameMenu_IsOpened | ( | ) |
Definition at line 372 of file cl_minigames_hud.qc.
References HUD_MinigameMenu_entries, and NULL.
Referenced by activate_minigame(), HUD_Crosshair(), HUD_Minigame_InputEvent(), HUD_Minigame_Mouse(), HUD_MinigameBoard(), HUD_MinigameHelp(), HUD_MinigameMenu(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_Open(), HUD_MinigameStatus(), HUD_Mouse(), HUD_Panel_Draw(), HUD_QuickMenu_Forbidden(), HUD_WouldShowCursor(), minigame_prompt(), MUTATOR_HOOKFUNCTION(), Scoreboard_WouldDraw(), View_CheckButtonStatus(), and View_Lock().
void HUD_MinigameMenu_MouseInput | ( | ) |
Definition at line 453 of file cl_minigames_hud.qc.
References entity(), eX, eY, HUD_MinigameMenu_activeitem, HUD_MinigameMenu_entries, HUD_PANEL, HUD_Panel_LoadCvars(), NULL, panel, panel_bg_padding, panel_pos, panel_size, and vector().
Referenced by HUD_Minigame_Mouse().
void HUD_MinigameMenu_Open | ( | ) |
Definition at line 437 of file cl_minigames_hud.qc.
References HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_SpawnEntry(), and mv_active.
Referenced by activate_minigame(), and MUTATOR_HOOKFUNCTION().
entity HUD_MinigameMenu_SpawnEntry | ( | entity | entry, |
string | s, | ||
vector | offset, | ||
vector | fontsize, | ||
vector | color, | ||
void(entity, entity, entity) | click | ||
) |
Definition at line 183 of file cl_minigames_hud.qc.
References color.
Referenced by HUD_MinigameMenu_CurrentButton(), HUD_MinigameMenu_Open(), and HUD_MinigameMenu_SpawnSubEntry().
entity HUD_MinigameMenu_SpawnSubEntry | ( | string | s, |
void(entity, entity, entity) | click, | ||
entity | parent | ||
) |
Definition at line 196 of file cl_minigames_hud.qc.
References entity(), hud_fontsize, HUD_MinigameMenu_SpawnEntry(), parent, and vector().
Referenced by HUD_MinigameMenu_ClickCreate(), HUD_MinigameMenu_ClickCurrentGame(), HUD_MinigameMenu_ClickInvite(), HUD_MinigameMenu_ClickJoin(), and HUD_MinigameMenu_CustomEntry().
void HUD_MinigameStatus | ( | ) |
Definition at line 79 of file cl_minigames_hud.qc.
References active_minigame, autocvar__hud_configure, entity(), HUD_MinigameMenu_IsOpened(), HUD_Panel_LoadCvars(), HUD_Scale_Disable(), minigame_get_descriptor(), NULL, panel_bg_padding, panel_pos, panel_size, and vector().
Definition at line 17 of file cl_minigames_hud.qc.
Definition at line 33 of file cl_minigames_hud.qc.
References cvar_string(), stov(), strcat(), vector(), vid_conheight, and vid_conwidth.
Referenced by HUD_Minigame_InputEvent(), and HUD_Minigame_Mouse().
vector colormod |
Definition at line 10 of file cl_minigames_hud.qc.
entity HUD_MinigameMenu_activeitem |
Definition at line 145 of file cl_minigames_hud.qc.
Referenced by HUD_Minigame_InputEvent(), HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_EraseEntry(), and HUD_MinigameMenu_MouseInput().
entity HUD_MinigameMenu_entries |
Definition at line 120 of file cl_minigames_hud.qc.
Referenced by HUD_Minigame_InputEvent(), HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_EraseEntry(), HUD_MinigameMenu_InsertEntry(), HUD_MinigameMenu_IsOpened(), and HUD_MinigameMenu_MouseInput().
entity HUD_MinigameMenu_last_entry |
Definition at line 122 of file cl_minigames_hud.qc.
Referenced by HUD_Minigame_InputEvent(), HUD_MinigameMenu_Click_ExpandCollapse(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_CurrentButton(), HUD_MinigameMenu_EraseEntry(), and HUD_MinigameMenu_InsertEntry().