77f324554969102d0285dcf724807f36c77496b3
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / scoreboard.qh
1 #pragma once
2 #include "../panel.qh"
3
4 bool autocvar_cl_deathscoreboard;
5 string autocvar_scoreboard_columns;
6
7 bool scoreboard_showscores;
8
9 bool scoreboard_active;
10 float scoreboard_fade_alpha;
11 float scoreboard_acc_fade_alpha;
12 float scoreboard_itemstats_fade_alpha;
13
14 float scoreboard_top;
15 float scoreboard_bottom;
16 float scoreboard_left;
17 float scoreboard_right;
18
19 void Cmd_Scoreboard_SetFields(int argc);
20 void Scoreboard_Draw();
21 void Scoreboard_InitScores();
22 void Scoreboard_UpdatePlayerTeams();
23 void Scoreboard_UpdatePlayerPos(entity pl);
24 void Scoreboard_UpdateTeamPos(entity Team);
25 bool Scoreboard_WouldDraw();
26 void Scoreboard_UI_Enable(int mode);
27
28 int scoreboard_ui_enabled;
29 float scoreboard_ui_disabled_time;
30 bool autocvar__scoreboard_team_selection;
31 float HUD_Scoreboard_InputEvent(float bInputType, float nPrimary, float nSecondary);
32
33 int scoreboard_selected_panel;
34 float scoreboard_selected_panel_time;
35 entity scoreboard_selected_player;
36 entity scoreboard_selected_team;
37 int scoreboard_selected_columns_layout;
38
39 // start from 1
40 int SB_PANEL_FIRST = 1;
41 int SB_PANEL_SCOREBOARD = 1;
42 int SB_PANEL_RANKINGS = 2;
43 int SB_PANEL_MAX = 2;