X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qh;h=ffb853d2f8379d93d47bac930923b1813defb23e;hb=77c46a6022a0e5c6fa2541e858a0cd9cba8d6b0b;hp=bed4daa268dc2a4afbe08995d70d7b3930913ca7;hpb=03abee3d5ff2cd543f2c2036990f05b5396e8e62;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index bed4daa26..ffb853d2f 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -1,5 +1,4 @@ -#ifndef CLIENT_MAIN_H -#define CLIENT_MAIN_H +#pragma once #include #include @@ -7,15 +6,6 @@ // -------------------------------------------------------------------------- // MENU Functionality -const float DATABUF_PING = 0; -#define DATABUF_CAPTURES (1*maxclients) -#define DATABUF_DEATHS (2*maxclients) -#define DATABUF_RETURNS (3*maxclients) - -#define DATABUF_NEXT (5*maxclients) - -void setpredraw(entity this, void(entity) pdfunc); - // -------------------------------------------------------------------------- // Onslaught @@ -40,6 +30,13 @@ float gametype; float FONT_USER = 8; + +vector OFFSET_CURSOR = '0 0 0'; +vector SIZE_CURSOR = '32 32 0'; +void draw_cursor(vector pos, vector ofs, string img, vector col, float a); +void draw_cursor_normal(vector pos, vector col, float a); +void LoadMenuSkinValues(); + // -------------------------------------------------------------------------- // Scoreboard stuff @@ -88,11 +85,20 @@ entity teamslots[17]; // 17 teams (including "spectator team") .float eliminated; .void(entity) draw; +IntrusiveList g_drawables; +STATIC_INIT(g_drawables) { g_drawables = IL_NEW(); } .void(entity) draw2d; +IntrusiveList g_drawables_2d; +STATIC_INIT(g_drawables_2d) { g_drawables_2d = IL_NEW(); } .void(entity) entremove; float drawframetime; vector view_origin, view_forward, view_right, view_up; +IntrusiveList g_radarlinks; +STATIC_INIT(g_radarlinks) { g_radarlinks = IL_NEW(); } +IntrusiveList g_radaricons; +STATIC_INIT(g_radaricons) { g_radaricons = IL_NEW(); } + bool button_zoom; bool spectatorbutton_zoom; bool button_attack2; @@ -106,7 +112,9 @@ float warmup_stage; void Fog_Force(); -string getcommandkey(string text, string command); +string _getcommandkey(string text, string command, bool forcename); +#define getcommandkey(cmd_name, command) _getcommandkey(cmd_name, command, false) +#define getcommandkey_forcename(cmd_name, command) _getcommandkey(cmd_name, command, true) string vote_called_vote; float ready_waiting; @@ -146,4 +154,5 @@ float view_quality; int framecount; .float health; -#endif +float GetSpeedUnitFactor(int speed_unit); +string GetSpeedUnit(int speed_unit);