|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "../panel.qh"Go to the source code of this file.
Macros | |
| #define | GET_NEXTMAP() |
Functions | |
| void | Cmd_Scoreboard_SetFields (int argc) |
| float | HUD_Scoreboard_InputEvent (float bInputType, float nPrimary, float nSecondary) |
| void | Scoreboard_Draw () |
| void | Scoreboard_InitScores () |
| void | Scoreboard_UI_Enable (int mode) |
| void | Scoreboard_UpdatePlayerPos (entity pl) |
| void | Scoreboard_UpdatePlayerTeams () |
| void | Scoreboard_UpdateTeamPos (entity Team) |
| bool | Scoreboard_WouldDraw () |
| #define GET_NEXTMAP | ( | ) |
Definition at line 767 of file scoreboard.qc.
Referenced by Scoreboard_InitScores().
Definition at line 231 of file scoreboard.qc.
References argv(), autocvar__menu_alpha, autocvar_scoreboard_columns, ceil(), entcs_GetName(), entity(), HUD_Scoreboard_UI_Disable(), hudShiftState, K_ALT, K_CTRL, K_DOWNARROW, K_ENTER, K_ESCAPE, K_KP_ENTER, K_LEFTARROW, K_PAUSE, K_RIGHTARROW, K_SHIFT, K_SPACE, K_TAB, K_UPARROW, LABEL, localcmd(), max(), min(), mousepos, NULL, NUM_SPECTATOR, players, prev_team, rankings_cnt, rankings_columns, RANKINGS_RECEIVED_CNT, rankings_rows, rankings_start_column, S_ALT, S_CTRL, S_SHIFT, S_TAB, SB_PANEL_FIRST, SB_PANEL_MAX, SB_PANEL_RANKINGS, SB_PANEL_SCOREBOARD, scoreboard_selected_columns_layout, scoreboard_selected_panel, scoreboard_selected_panel_time, scoreboard_selected_player, scoreboard_selected_team, scoreboard_ui_disabling, scoreboard_ui_enabled, Static_Team_ColorName(), stof(), teams, time, and tokenize().
Referenced by CSQC_InputEvent().
| void Scoreboard_Draw | ( | ) |
Definition at line 2401 of file scoreboard.qc.
References autocvar__hud_configure, autocvar_con_notify, autocvar_con_notifysize, autocvar_hud_fontsize, autocvar_hud_panel_scoreboard_bg_teams_color_team, autocvar_hud_panel_scoreboard_dynamichud, autocvar_hud_panel_scoreboard_fadeinspeed, autocvar_hud_panel_scoreboard_fadeoutspeed, autocvar_hud_panel_scoreboard_minwidth, autocvar_hud_panel_scoreboard_namesize, autocvar_hud_panel_scoreboard_respawntime_decimals, autocvar_hud_panel_scoreboard_spectators_position, autocvar_hud_panel_scoreboard_table_bg_alpha, autocvar_hud_panel_scoreboard_table_bg_scale, autocvar_hud_panel_scoreboard_table_fg_alpha, autocvar_hud_panel_scoreboard_table_fg_alpha_self, autocvar_hud_panel_scoreboard_table_fieldtitle_maxwidth, autocvar_hud_panel_scoreboard_table_highlight, autocvar_hud_panel_scoreboard_table_highlight_alpha, autocvar_hud_panel_scoreboard_table_highlight_alpha_eliminated, autocvar_hud_panel_scoreboard_table_highlight_alpha_self, autocvar_hud_panel_scoreboard_team_size_position, autocvar_hud_speed_unit, bound(), campaign, ceil(), ColorTranslateRGB(), count_minutes, count_seconds, count_seconds_decs, draw_beginBoldFont, draw_endBoldFont, drawcolorcodedstring, drawfill, DRAWFLAG_NORMAL, drawstring, entity(), eX, eY, floor(), frametime, ftos(), gametype, gametype_custom_name, GET_NEXTMAP, getcommandkey, GetSpeedUnit(), GetSpeedUnitFactor(), hud_configure_menu_open, hud_draw_maximized, hud_fontsize, HUD_GetFontsize(), HUD_Panel_LoadCvars(), HUD_Scale_Disable(), HUD_Scale_Enable(), intermission, M_ARGV, MapInfo_Type_ToText(), max(), max_namesize, maxclients, mi_shortname, min(), MUTATOR_CALLHOOK, name, name_field_index, NUM_SPECTATOR, numplayers, panel, panel_bg_border, panel_bg_color, panel_bg_color_team, panel_fade_alpha, panel_fg_alpha, panel_pos, panel_size, player_localnum, playerslots, race_speedaward, race_speedaward_alltimebest, race_speedaward_alltimebest_holder, race_speedaward_holder, rankings_cnt, rankings_columns, RANKINGS_RECEIVED_CNT, rankings_rows, respawn_time, sb_field_sizes_init, sbt_bg_alpha, sbt_fg_alpha, sbt_fg_alpha_self, sbt_field_size, sbt_field_title_maxwidth, sbt_field_title_width, sbt_highlight, sbt_highlight_alpha, sbt_highlight_alpha_eliminated, sbt_highlight_alpha_self, scale, scoreboard_acc_fade_alpha, Scoreboard_AccuracyStats_Draw(), Scoreboard_AccuracyStats_WouldDraw(), scoreboard_active, scoreboard_bottom, scoreboard_fade_alpha, Scoreboard_Fraglimit_Draw(), Scoreboard_initFieldSizes(), Scoreboard_ItemStats_Draw(), scoreboard_itemstats_fade_alpha, Scoreboard_ItemStats_WouldDraw(), scoreboard_left, Scoreboard_MakeTable(), Scoreboard_MapStats_Draw(), Scoreboard_Rankings_Draw(), scoreboard_right, scoreboard_selected_team, Scoreboard_Spectators_Draw(), scoreboard_time, scoreboard_top, scoreboard_ui_enabled, Scoreboard_UpdatePlayerTeams(), srv_maxplayers, STAT, strcat(), strcpy, stringwidth, stringwidth_colors(), Team_ColorRGB(), teamplay, teams, textShortenToWidth(), time, translate_key(), ts_primary, ts_secondary, vec2, vector, vid_conheight, and vid_conwidth.
| void Scoreboard_InitScores | ( | ) |
Definition at line 514 of file scoreboard.qc.
References Cmd_Scoreboard_SetFields(), FOREACH, MAX_TEAMSCORE, NULL, ps_primary, ps_secondary, scores_flags, SFL_NOT_SORTABLE, SFL_SORT_PRIO_MASK, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, teamscores_flags, ts_primary, and ts_secondary.
Referenced by NET_HANDLE().
Definition at line 198 of file scoreboard.qc.
References intermission, isdemo(), NULL, Release_Common_Keys(), SB_PANEL_FIRST, SB_PANEL_SCOREBOARD, scoreboard_selected_panel, scoreboard_selected_panel_time, scoreboard_selected_player, scoreboard_selected_team, scoreboard_ui_enabled, teamplay, and time.
Referenced by CSQC_InputEvent(), and CSQC_UpdateView().
Definition at line 656 of file scoreboard.qc.
References entity(), players, Scoreboard_ComparePlayerScores(), and SORT_SWAP.
Referenced by NET_HANDLE(), Playerchecker_Think(), and Scoreboard_UpdatePlayerTeams().
| void Scoreboard_UpdatePlayerTeams | ( | ) |
Definition at line 546 of file scoreboard.qc.
References entcs_GetScoreTeam(), entity(), NUM_SPECTATOR, numplayers, players, Scoreboard_UpdatePlayerPos(), SetTeam(), teamplay, teams, time, ts_max, and ts_min.
Referenced by Announcer_Duel(), HUD_InfoMessages(), HUD_Quickmenu_PlayerListEntries(), HUD_Score_Rankings(), HUD_Timer(), and Scoreboard_Draw().
Definition at line 702 of file scoreboard.qc.
References entity(), Scoreboard_CompareTeamScores(), SORT_SWAP, and teams.
Referenced by NET_HANDLE().
| bool Scoreboard_WouldDraw | ( | ) |
Definition at line 1764 of file scoreboard.qc.
References active_minigame, autocvar_cl_deathscoreboard, autocvar_cl_deathscoreboard_delay, CSQCModel_server2csqc(), death_time, HUD_MinigameMenu_IsOpened(), HUD_Radar_Clickable(), HUD_Scoreboard_UI_Disable_Instantly(), intermission, MUTATOR_CALLHOOK, player_localentnum, QuickMenu_IsOpened(), sb_showscores, scoreboard_fade_alpha, scoreboard_showscores_force, scoreboard_ui_disabling, scoreboard_ui_enabled, spectatee_status, STAT, and time.
Referenced by CSQC_UpdateView().
| string autocvar__nextmap |
Definition at line 9 of file scoreboard.qh.
| bool autocvar__scoreboard_team_selection |
Definition at line 41 of file scoreboard.qh.
Referenced by CSQC_UpdateView().
| bool autocvar_cl_deathscoreboard |
Definition at line 4 of file scoreboard.qh.
Referenced by Scoreboard_WouldDraw().
| float autocvar_cl_deathscoreboard_delay = 1 |
Definition at line 5 of file scoreboard.qh.
Referenced by Scoreboard_WouldDraw().
| float autocvar_hud_panel_scoreboard_namesize = 15 |
Definition at line 7 of file scoreboard.qh.
Referenced by centerprint_SetDuelTitle(), Scoreboard_Draw(), Scoreboard_DrawOthers(), and Scoreboard_Rankings_Draw().
| string autocvar_scoreboard_columns |
Definition at line 6 of file scoreboard.qh.
Referenced by Cmd_Scoreboard_SetFields(), and HUD_Scoreboard_InputEvent().
| bool ignored |
Definition at line 29 of file scoreboard.qh.
| int numplayers |
Definition at line 26 of file scoreboard.qh.
Referenced by HUD_InfoMessages(), HUD_Timer(), Invasion_RoundStart(), Scoreboard_Draw(), and Scoreboard_UpdatePlayerTeams().
| int SB_PANEL_FIRST = 1 |
Definition at line 51 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent(), and Scoreboard_UI_Enable().
| int SB_PANEL_MAX = 2 |
Definition at line 54 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent().
| int SB_PANEL_RANKINGS = 2 |
Definition at line 53 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent(), and Scoreboard_Rankings_Draw().
| int SB_PANEL_SCOREBOARD = 1 |
Definition at line 52 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_MakeTable(), and Scoreboard_UI_Enable().
| bool sb_showscores |
Definition at line 14 of file scoreboard.qh.
Referenced by HUD_Scoreboard_UI_Disable(), and Scoreboard_WouldDraw().
| float scoreboard_acc_fade_alpha |
Definition at line 18 of file scoreboard.qh.
Referenced by Scoreboard_AccuracyStats_Draw(), and Scoreboard_Draw().
| bool scoreboard_active |
Definition at line 16 of file scoreboard.qh.
Referenced by AuxiliaryXhair_Draw2D(), CSQC_UpdateView(), HUD_Configure_Frame(), HUD_Crosshair(), and Scoreboard_Draw().
| float scoreboard_bottom |
Definition at line 22 of file scoreboard.qh.
Referenced by HUD_CenterPrint(), HUD_Notify(), and Scoreboard_Draw().
| float scoreboard_fade_alpha |
Definition at line 17 of file scoreboard.qh.
Referenced by HUD_CenterPrint(), HUD_Main(), HUD_Notify(), HUD_Panel_Draw(), Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_ItemStats_Draw(), and Scoreboard_WouldDraw().
| float scoreboard_itemstats_fade_alpha |
Definition at line 19 of file scoreboard.qh.
Referenced by Scoreboard_Draw(), and Scoreboard_ItemStats_Draw().
| float scoreboard_left |
Definition at line 23 of file scoreboard.qh.
Referenced by HUD_Notify(), Scoreboard_Draw(), Scoreboard_MakeTable(), and Scoreboard_Rankings_Draw().
| float scoreboard_right |
Definition at line 24 of file scoreboard.qh.
Referenced by HUD_Notify(), Scoreboard_Draw(), Scoreboard_MakeTable(), and Scoreboard_Rankings_Draw().
| int scoreboard_selected_columns_layout |
Definition at line 48 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent().
| int scoreboard_selected_panel |
Definition at line 44 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent(), HUD_Scoreboard_UI_Disable_Instantly(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_MakeTable(), Scoreboard_Rankings_Draw(), and Scoreboard_UI_Enable().
| float scoreboard_selected_panel_time |
Definition at line 45 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent(), Scoreboard_MakeTable(), Scoreboard_Rankings_Draw(), and Scoreboard_UI_Enable().
| entity scoreboard_selected_player |
Definition at line 46 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent(), HUD_Scoreboard_UI_Disable_Instantly(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), and Scoreboard_UI_Enable().
| entity scoreboard_selected_team |
Definition at line 47 of file scoreboard.qh.
Referenced by HUD_Scoreboard_InputEvent(), HUD_Scoreboard_UI_Disable_Instantly(), Scoreboard_Draw(), Scoreboard_MakeTable(), and Scoreboard_UI_Enable().
| float scoreboard_top |
Definition at line 21 of file scoreboard.qh.
Referenced by HUD_Notify(), and Scoreboard_Draw().
| int scoreboard_ui_enabled |
Definition at line 40 of file scoreboard.qh.
Referenced by HUD_QuickMenu_Forbidden(), HUD_Radar_Mouse(), HUD_Scoreboard_InputEvent(), HUD_Scoreboard_UI_Disable_Instantly(), Scoreboard_Draw(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_MakeTable(), Scoreboard_UI_Enable(), and Scoreboard_WouldDraw().
| int ts_max |
team size
Definition at line 27 of file scoreboard.qh.
Referenced by HUD_InfoMessages(), HUD_Timer(), Scoreboard_UpdatePlayerTeams(), and TeamBalance_SizeDifference().
| int ts_min |
Definition at line 27 of file scoreboard.qh.
Referenced by HUD_InfoMessages(), HUD_Timer(), Scoreboard_UpdatePlayerTeams(), and TeamBalance_SizeDifference().