Xonotic
|
#include "cl_minigames.qh"
Go to the source code of this file.
Macros | |
#define | FIELD(Flags, Type, Name) MSLE_CLEAN_##Type(this.Name) |
#define | FIELD(Flags, Type, Name) if ( sf & (Flags) ) this.Name = Read##Type(); |
#define | MSLE(Name, Fields) void msle_entremove_##Name(entity this) { strunzone(this.netname); Fields } |
#define | MSLE(Name, Fields) |
#define | MSLE_CLEAN_Angle(x) |
#define | MSLE_CLEAN_Byte(x) |
#define | MSLE_CLEAN_Char(x) |
#define | MSLE_CLEAN_Coord(x) |
#define | MSLE_CLEAN_Float(x) |
#define | MSLE_CLEAN_Long(x) |
#define | MSLE_CLEAN_Short(x) |
#define | MSLE_CLEAN_String(x) strunzone(x); |
#define | MSLE_CLEAN_Vector(x) |
#define | MSLE_CLEAN_Vector2D(x) |
#define | ReadString ReadString_Zoned |
Variables | |
bool | auto_close_minigamemenu |
#define FIELD | ( | Flags, | |
Type, | |||
Name | |||
) | MSLE_CLEAN_##Type(this.Name) |
Definition at line 159 of file cl_minigames.qc.
#define FIELD | ( | Flags, | |
Type, | |||
Name | |||
) | if ( sf & (Flags) ) this.Name = Read##Type(); |
Definition at line 159 of file cl_minigames.qc.
#define MSLE | ( | Name, | |
Fields | |||
) | void msle_entremove_##Name(entity this) { strunzone(this.netname); Fields } |
Definition at line 160 of file cl_minigames.qc.
#define MSLE | ( | Name, | |
Fields | |||
) |
Definition at line 160 of file cl_minigames.qc.
#define MSLE_CLEAN_Angle | ( | x | ) |
Definition at line 64 of file cl_minigames.qc.
#define MSLE_CLEAN_Byte | ( | x | ) |
Definition at line 59 of file cl_minigames.qc.
#define MSLE_CLEAN_Char | ( | x | ) |
Definition at line 60 of file cl_minigames.qc.
#define MSLE_CLEAN_Coord | ( | x | ) |
Definition at line 63 of file cl_minigames.qc.
#define MSLE_CLEAN_Float | ( | x | ) |
Definition at line 65 of file cl_minigames.qc.
#define MSLE_CLEAN_Long | ( | x | ) |
Definition at line 62 of file cl_minigames.qc.
#define MSLE_CLEAN_Short | ( | x | ) |
Definition at line 61 of file cl_minigames.qc.
#define MSLE_CLEAN_String | ( | x | ) | strunzone(x); |
Definition at line 58 of file cl_minigames.qc.
#define MSLE_CLEAN_Vector | ( | x | ) |
Definition at line 66 of file cl_minigames.qc.
#define MSLE_CLEAN_Vector2D | ( | x | ) |
Definition at line 67 of file cl_minigames.qc.
#define ReadString ReadString_Zoned |
Definition at line 158 of file cl_minigames.qc.
Referenced by conveyor_think(), DelayThink(), door_reset(), func_ladder_think(), GameTypeVote_ReadOption(), GENERIC_COMMAND(), Local_Notification_WOVA(), MapVote_Init(), MapVote_ReadOption(), NET_HANDLE(), train_next(), and trigger_push_findtarget().
Definition at line 114 of file cl_minigames.qc.
References active_minigame, auto_close_minigamemenu, deactivate_minigame(), HUD_MinigameMenu_CurrentButton(), HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_Open(), LOG_TRACE, minigame_self, and NULL.
Referenced by NET_HANDLE().
void deactivate_minigame | ( | ) |
Definition at line 83 of file cl_minigames.qc.
References active_minigame, auto_close_minigamemenu, entity(), findentity(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_CurrentButton(), minigame_autoclean_entity(), minigame_self, NULL, and owner.
Referenced by activate_minigame(), HUD_MinigameMenu_ClickQuit(), minigame_entremove(), minigame_player_entremove(), 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().
MINIGAME_SIMPLELINKED_ENTITIES void minigame_autoclean_entity | ( | entity | e | ) |
Definition at line 75 of file cl_minigames.qc.
References etof(), ftos(), HUD_MinigameMenu_CurrentButton(), and LOG_DEBUG.
Referenced by deactivate_minigame().
Definition at line 362 of file cl_minigames.qc.
References cmd(), localcmd, and strcat().
void minigame_drawcolorcodedstring_trunc | ( | float | maxwidth, |
vector | pos, | ||
string | text, | ||
vector | fontsize, | ||
float | theAlpha, | ||
int | drawflags | ||
) |
Definition at line 347 of file cl_minigames.qc.
References drawcolorcodedstring(), and textShortenToWidth().
Referenced by HUD_MinigameMenu_DrawColoredEntry(), and ttt_next_match().
vector minigame_drawcolorcodedstring_wrapped | ( | float | maxwidth, |
vector | pos, | ||
string | text, | ||
vector | fontsize, | ||
float | theAlpha, | ||
int | drawflags, | ||
float | align | ||
) |
Definition at line 321 of file cl_minigames.qc.
References drawcolorcodedstring(), getWrappedLine_remaining, minigame_getWrappedLine(), and vector().
Referenced by c4_move(), nmm_in_mill(), and pp_next_match().
void minigame_drawpic_centered | ( | vector | pos, |
string | texture, | ||
vector | sz, | ||
vector | color, | ||
float | thealpha, | ||
int | drawflags | ||
) |
Definition at line 354 of file cl_minigames.qc.
References drawpic().
Referenced by bd_close_editor(), c4_move(), nmm_in_mill(), pp_next_match(), ps_move(), and ttt_next_match().
void minigame_drawstring_trunc | ( | float | maxwidth, |
vector | pos, | ||
string | text, | ||
vector | fontsize, | ||
vector | color, | ||
float | theAlpha, | ||
int | drawflags | ||
) |
Definition at line 340 of file cl_minigames.qc.
References drawstring(), and textShortenToWidth().
Referenced by HUD_MinigameMenu_DrawEntry().
vector minigame_drawstring_wrapped | ( | float | maxwidth, |
vector | pos, | ||
string | text, | ||
vector | fontsize, | ||
vector | color, | ||
float | theAlpha, | ||
int | drawflags, | ||
float | align | ||
) |
Definition at line 302 of file cl_minigames.qc.
References drawstring(), getWrappedLine_remaining, minigame_getWrappedLine(), and vector().
Referenced by ttt_next_match().
Definition at line 108 of file cl_minigames.qc.
References active_minigame, and deactivate_minigame().
Referenced by NET_HANDLE().
string minigame_getWrappedLine | ( | float | w, |
vector | theFontSize, | ||
textLengthUpToWidth_widthFunction_t | tw | ||
) |
Definition at line 249 of file cl_minigames.qc.
References find_last_color_code(), getWrappedLine_remaining, strcat(), string_null, strlen(), substring(), and textLengthUpToWidth().
Referenced by minigame_drawcolorcodedstring_wrapped(), and minigame_drawstring_wrapped().
Definition at line 16 of file cl_minigames.qc.
References v.
Referenced by bd_close_editor(), c4_move(), nmm_in_mill(), pp_next_match(), ps_move(), and ttt_next_match().
Definition at line 23 of file cl_minigames.qc.
References v.
Referenced by bd_close_editor(), c4_move(), nmm_in_mill(), pp_next_match(), ps_move(), and ttt_next_match().
Definition at line 39 of file cl_minigames.qc.
Definition at line 4 of file cl_minigames.qc.
References BORDER_MULTIPLIER, draw_BorderPicture(), DRAWFLAG_NORMAL, drawpic(), panel, panel_bg_alpha, panel_bg_border, and panel_bg_color.
Referenced by bd_close_editor(), c4_move(), nmm_in_mill(), pp_next_match(), ps_move(), and ttt_next_match().
Definition at line 150 of file cl_minigames.qc.
References active_minigame, deactivate_minigame(), minigame_playerslot, owner, player_localentnum, and string().
Referenced by NET_HANDLE().
void minigame_prompt | ( | ) |
Definition at line 374 of file cl_minigames.qc.
References active_minigame, HUD_MinigameMenu_IsOpened(), and HUD_Notify_Push().
Definition at line 169 of file cl_minigames.qc.
References find(), LOG_TRACE, netname, NULL, and owner.
Referenced by bd_find_dozer(), and NET_HANDLE().
Definition at line 49 of file cl_minigames.qc.
References autocvar_menu_skin, minigame_texture_skin(), and precache_pic().
Referenced by bd_close_editor(), c4_move(), HUD_MinigameMenu_ClickCreate(), HUD_MinigameMenu_ClickJoin(), nmm_in_mill(), pp_next_match(), ps_move(), and ttt_next_match().
Definition at line 45 of file cl_minigames.qc.
Referenced by minigame_texture().
MUTATOR_HOOKFUNCTION | ( | minigames | , |
HUD_Command | |||
) |
Definition at line 386 of file cl_minigames.qc.
References argv(), HUD_MinigameMenu_Close(), HUD_MinigameMenu_IsOpened(), HUD_MinigameMenu_Open(), isdemo(), MUTATOR_RETURNVALUE, and NULL.
NET_HANDLE | ( | ENT_CLIENT_MINIGAME | , |
bool | isnew | ||
) |
Definition at line 179 of file cl_minigames.qc.
References activate_minigame(), active_minigame, classname, descriptor, entity(), enttype, etof(), ftos(), LOG_DEBUG, LOG_TRACE, MINIG_SF_CREATE, MINIG_SF_UPDATE, minigame_entremove(), minigame_flags, minigame_get_descriptor(), minigame_player_entremove(), minigame_playerslot, minigame_read_owner(), minigame_self, MINIGAME_SIMPLELINKED_ENTITIES, msle_classname(), netname, NULL, owner, player_localnum, ReadString_Zoned(), and team.
string ReadString_Zoned | ( | ) |
Definition at line 157 of file cl_minigames.qc.
References strzone().
Referenced by NET_HANDLE().
REGISTER_MUTATOR | ( | minigames | , |
true | |||
) |
string | ( | ) | = #501 |
bool auto_close_minigamemenu |
Definition at line 82 of file cl_minigames.qc.
Referenced by activate_minigame(), and deactivate_minigame().