Xonotic
|
#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_Kill (int id) |
void | centerprint_KillAll () |
void | HUD_CenterPrint () |
void | HUD_CenterPrint_Export (int fh) |
Definition at line 46 of file centerprint.qc.
References autocvar_hud_panel_centerprint_fade_out, autocvar_hud_panel_centerprint_time, BOLD_OPERATOR, centerprint_bold, centerprint_countdown_num, centerprint_expire_time, CENTERPRINT_MAX_MSGS, centerprint_messages, centerprint_msgID, centerprint_showing, centerprint_time, cpm_index, max(), min(), strcpy, strlen(), substring(), and TC.
Referenced by centerprint_AddStandard(), centerprint_Kill(), HUD_CenterPrint(), and Local_Notification_sprintf().
Definition at line 132 of file centerprint.qc.
References autocvar_hud_panel_centerprint_time, and centerprint_Add().
Referenced by CSQC_Parse_CenterPrint(), and LocalCommand_localprint().
Definition at line 126 of file centerprint.qc.
References centerprint_Add(), and TC.
Referenced by Announcer_Gamestart(), and Local_Notification_WOVA().
void centerprint_KillAll | ( | ) |
Definition at line 137 of file centerprint.qc.
References centerprint_bold, centerprint_expire_time, CENTERPRINT_MAX_MSGS, centerprint_messages, centerprint_msgID, centerprint_time, and strfree.
Referenced by Destroy_All_Notifications(), HUD_CenterPrint(), and Local_Notification_WOVA().
void HUD_CenterPrint | ( | ) |
Definition at line 150 of file centerprint.qc.
References autocvar__hud_configure, autocvar_hud_panel_centerprint, centerprint_Add(), centerprint_KillAll(), floor(), highlightedPanel, hud_configure_cp_generation_time, hud_configure_prev, HUD_PANEL, random(), and time.
bool centerprint_bold[CENTERPRINT_MAX_MSGS] |
Definition at line 40 of file centerprint.qc.
Referenced by centerprint_Add(), and centerprint_KillAll().
int centerprint_countdown_num[CENTERPRINT_MAX_MSGS] |
Definition at line 43 of file centerprint.qc.
Referenced by centerprint_Add().
float centerprint_expire_time[CENTERPRINT_MAX_MSGS] |
Definition at line 42 of file centerprint.qc.
Referenced by centerprint_Add(), and centerprint_KillAll().
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(), and centerprint_KillAll().
string centerprint_messages[CENTERPRINT_MAX_MSGS] |
Definition at line 38 of file centerprint.qc.
Referenced by centerprint_Add(), and centerprint_KillAll().
int centerprint_msgID[CENTERPRINT_MAX_MSGS] |
Definition at line 39 of file centerprint.qc.
Referenced by centerprint_Add(), and centerprint_KillAll().
bool centerprint_showing |
Definition at line 44 of file centerprint.qc.
Referenced by centerprint_Add().
const float CENTERPRINT_SPACING = 0.7 |
Definition at line 36 of file centerprint.qc.
float centerprint_time[CENTERPRINT_MAX_MSGS] |
Definition at line 41 of file centerprint.qc.
Referenced by centerprint_Add(), and centerprint_KillAll().
int cpm_index |
Definition at line 37 of file centerprint.qc.
Referenced by centerprint_Add().
float hud_configure_cp_generation_time |
Definition at line 149 of file centerprint.qc.
Referenced by HUD_CenterPrint().