|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "centerprint.qh"#include <client/draw.qh>#include <client/hud/panel/scoreboard.qh>#include <common/notifications/all.qh>Go to the source code of this file.
Functions | |
| void | centerprint_Add (int new_id, string strMessage, float duration, int countdown_num) |
| void | centerprint_AddStandard (string strMessage) |
| void | centerprint_ClearTitle () |
| void | centerprint_Kill (int id) |
| void | centerprint_KillAll () |
| void | centerprint_SetDuelTitle (string left, string right) |
| void | centerprint_SetTitle (string title) |
| void | HUD_CenterPrint () |
| void | HUD_CenterPrint_Export (int fh) |
Definition at line 52 of file centerprint.qc.
References autocvar_hud_panel_centerprint_fade_out, autocvar_hud_panel_centerprint_time, centerprint_countdown_num, centerprint_expire_time, CENTERPRINT_MAX_MSGS, centerprint_messages, centerprint_msgID, centerprint_showing, centerprint_start_time, centerprint_time, cpm_index, max(), min(), strcpy, strlen, substring(), TC, and time.
Referenced by centerprint_AddStandard(), centerprint_Kill(), HUD_CenterPrint(), and Local_Notification_centerprint_Add().
Definition at line 137 of file centerprint.qc.
References autocvar_hud_panel_centerprint_time, and centerprint_Add().
Referenced by CSQC_Parse_CenterPrint(), HUD_CenterPrint(), and LocalCommand_localprint().
| void centerprint_ClearTitle | ( | ) |
Definition at line 167 of file centerprint.qc.
References centerprint_title, centerprint_title_left, centerprint_title_right, and strfree.
Referenced by Announcer_ClearTitle(), and HUD_CenterPrint().
Definition at line 131 of file centerprint.qc.
References centerprint_Add(), and TC.
Referenced by Announcer_Gamestart(), and NET_HANDLE().
| void centerprint_KillAll | ( | ) |
Definition at line 142 of file centerprint.qc.
References centerprint_expire_time, CENTERPRINT_MAX_MSGS, centerprint_messages, centerprint_msgID, centerprint_start_time, centerprint_time, and strfree.
Referenced by Destroy_All_Notifications(), HUD_CenterPrint(), and NET_HANDLE().
Definition at line 154 of file centerprint.qc.
References autocvar_hud_panel_scoreboard_namesize, centerprint_title_left, centerprint_title_right, hud_fontsize, strcpy, stringwidth_colors(), and textShortenToWidth().
Referenced by Announcer_Duel().
Definition at line 161 of file centerprint.qc.
References CCR(), centerprint_title, and strcpy.
Referenced by Announcer_Gamestart(), and HUD_CenterPrint().
| void HUD_CenterPrint | ( | ) |
Definition at line 175 of file centerprint.qc.
References argv(), autocvar__hud_configure, autocvar_hud_panel_centerprint, autocvar_hud_panel_centerprint_align, autocvar_hud_panel_centerprint_dynamichud, autocvar_hud_panel_centerprint_fade_in, autocvar_hud_panel_centerprint_fade_minfontsize, autocvar_hud_panel_centerprint_fade_out, autocvar_hud_panel_centerprint_fade_subsequent, autocvar_hud_panel_centerprint_fade_subsequent_passone, autocvar_hud_panel_centerprint_fade_subsequent_passone_minalpha, autocvar_hud_panel_centerprint_fade_subsequent_passtwo, autocvar_hud_panel_centerprint_fade_subsequent_passtwo_minalpha, autocvar_hud_panel_centerprint_flip, autocvar_hud_panel_centerprint_fontscale, autocvar_hud_panel_centerprint_fontscale_bold, autocvar_hud_panel_centerprint_fontscale_title, BOLD_OPERATOR, bound(), centerprint_Add(), centerprint_AddStandard(), CENTERPRINT_BASE_SIZE, centerprint_ClearTitle(), centerprint_countdown_num, centerprint_expire_time, centerprint_KillAll(), CENTERPRINT_MAX_MSGS, centerprint_messages, centerprint_msgID, centerprint_SetTitle(), centerprint_showing, CENTERPRINT_SPACING, centerprint_start_time, centerprint_time, centerprint_title, centerprint_title_left, centerprint_title_right, CENTERPRINT_TITLE_SPACING, cpm_index, draw_beginBoldFont, draw_endBoldFont, drawcolorcodedstring, drawfill, DRAWFLAG_NORMAL, drawfontscale, drawstring, eX, eY, floor(), ftos(), getWrappedLine(), getWrappedLine_remaining, highlightedPanel, hud_configure_cp_generation_time, hud_configure_prev, hud_fontsize, HUD_Panel_DrawBg, HUD_Panel_LoadCvars(), hud_panel_radar_bottom, HUD_Radar_Clickable(), hud_scale, HUD_Scale_Disable(), HUD_Scale_Enable(), max(), min(), ORDINAL, panel, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, random(), scoreboard_bottom, scoreboard_fade_alpha, seconds_tostring(), sqrt(), stringwidth, stringwidth_colors(), substring(), time, tokenizebyseparator, vec2, vector, vid_conheight, and vid_conwidth.
Definition at line 9 of file centerprint.qc.
References HUD_Write_Cvar.
| const float CENTERPRINT_BASE_SIZE = 1.3 |
Definition at line 36 of file centerprint.qc.
Referenced by HUD_CenterPrint().
| int centerprint_countdown_num[CENTERPRINT_MAX_MSGS] |
Definition at line 45 of file centerprint.qc.
Referenced by centerprint_Add(), and HUD_CenterPrint().
| float centerprint_expire_time[CENTERPRINT_MAX_MSGS] |
Definition at line 44 of file centerprint.qc.
Referenced by centerprint_Add(), centerprint_KillAll(), and HUD_CenterPrint().
| const int CENTERPRINT_MAX_ENTRIES = 50 |
Definition at line 35 of file centerprint.qc.
| const int CENTERPRINT_MAX_MSGS = 10 |
Definition at line 34 of file centerprint.qc.
Referenced by centerprint_Add(), centerprint_KillAll(), and HUD_CenterPrint().
| string centerprint_messages[CENTERPRINT_MAX_MSGS] |
Definition at line 40 of file centerprint.qc.
Referenced by centerprint_Add(), centerprint_KillAll(), and HUD_CenterPrint().
| int centerprint_msgID[CENTERPRINT_MAX_MSGS] |
Definition at line 41 of file centerprint.qc.
Referenced by centerprint_Add(), centerprint_KillAll(), and HUD_CenterPrint().
| bool centerprint_showing |
Definition at line 46 of file centerprint.qc.
Referenced by centerprint_Add(), and HUD_CenterPrint().
| const float CENTERPRINT_SPACING = 0.3 |
Definition at line 37 of file centerprint.qc.
Referenced by HUD_CenterPrint().
| float centerprint_start_time[CENTERPRINT_MAX_MSGS] |
Definition at line 43 of file centerprint.qc.
Referenced by centerprint_Add(), centerprint_KillAll(), and HUD_CenterPrint().
| float centerprint_time[CENTERPRINT_MAX_MSGS] |
Definition at line 42 of file centerprint.qc.
Referenced by centerprint_Add(), centerprint_KillAll(), and HUD_CenterPrint().
| string centerprint_title |
Definition at line 48 of file centerprint.qc.
Referenced by centerprint_ClearTitle(), centerprint_SetTitle(), and HUD_CenterPrint().
| string centerprint_title_left |
Definition at line 49 of file centerprint.qc.
Referenced by centerprint_ClearTitle(), centerprint_SetDuelTitle(), and HUD_CenterPrint().
| string centerprint_title_right |
Definition at line 50 of file centerprint.qc.
Referenced by centerprint_ClearTitle(), centerprint_SetDuelTitle(), and HUD_CenterPrint().
| const float CENTERPRINT_TITLE_SPACING = 0.35 |
Definition at line 38 of file centerprint.qc.
Referenced by HUD_CenterPrint().
| int cpm_index |
Definition at line 39 of file centerprint.qc.
Referenced by centerprint_Add(), and HUD_CenterPrint().
| float hud_configure_cp_generation_time |
Definition at line 174 of file centerprint.qc.
Referenced by HUD_CenterPrint().