]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/menu/draw.qh
First part of the predator stomach board; Send the stomach load stat of the predator...
[voretournament/voretournament.git] / data / qcsrc / menu / draw.qh
1 // from the engine\r
2 vector drawfontscale;\r
3 #define draw_fontscale drawfontscale\r
4 #define draw_fontscale_x drawfontscale_x\r
5 #define draw_fontscale_y drawfontscale_y\r
6 #define draw_fontscale_z drawfontscale_z\r
7 \r
8 vector draw_shift;\r
9 vector draw_scale;\r
10 float draw_alpha;\r
11 vector draw_fontscale;\r
12 \r
13 void draw_reset(float cw, float ch, float ox, float oy);\r
14 void draw_setMousePointer(string pic, vector theSize, vector theOffset);\r
15 void draw_drawMousePointer(vector where);\r
16 \r
17 void draw_PreloadPicture(string pic);\r
18 void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);\r
19 void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);\r
20 void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize);\r
21 void draw_Picture(vector origin, string pic, vector size, vector color, float alpha);\r
22 vector draw_PictureSize(string pic);\r
23 void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha);\r
24 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);\r
25 void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);\r
26 float draw_TextWidth(string text, float allowColorCodes, vector size);\r
27 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes, vector size);\r
28 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes, vector size);\r
29 \r
30 void draw_SetClip();\r
31 void draw_SetClipRect(vector theOrigin, vector theScale);\r
32 void draw_ClearClip();\r
33 \r
34 vector boxToGlobal(vector v, vector shift, vector scale);\r
35 vector boxToGlobalSize(vector v, vector scale);\r
36 vector globalToBox(vector v, vector shift, vector scale);\r
37 vector globalToBoxSize(vector v, vector scale);\r
38 \r
39 float draw_NeedResizeNotify;\r
40 \r
41 string draw_currentSkin;\r
42 \r
43 float draw_TextWidth_WithColors(string s, vector size);\r
44 float draw_TextWidth_WithoutColors(string s, vector size);\r