]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/draw.qh
Fix FL_WEAPON flag overlapping FL_JUMPRELEASED. This unintentional change was introdu...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / draw.qh
1 #pragma once
2
3 // from the engine
4 vector drawfontscale;
5 #define draw_fontscale drawfontscale
6
7 vector draw_shift;
8 vector draw_scale;
9 float draw_alpha;
10
11 void draw_reset(float cw, float ch, float ox, float oy);
12 #define draw_beginBoldFont() drawfont = FONT_USER + 3
13 #define draw_endBoldFont() drawfont = FONT_USER
14 void draw_setMousePointer(string pic, vector theSize, vector theOffset);
15 void draw_drawMousePointer(vector where);
16
17 string draw_PreloadPicture(string pic);
18 string draw_PreloadPictureWithFlags(string pic, float f);
19 void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
20 void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
21 void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize);
22 void draw_Picture(vector origin, string pic, vector size, vector color, float alpha);
23 vector draw_PictureSize(string pic);
24 bool draw_PictureExists(string pic);
25 void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha);
26 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
27 void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
28 float draw_TextWidth(string text, float allowColorCodes, vector size);
29 float draw_CondensedFontFactor(string theText, float ICanHasKallerz, vector SizeThxBye, float maxWidth);
30 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes, vector size);
31 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes, vector size);
32
33 void draw_SetClip();
34 void draw_SetClipRect(vector theOrigin, vector theScale);
35 void draw_ClearClip();
36
37 vector boxToGlobal(vector v, vector shift, vector scale);
38 vector boxToGlobalSize(vector v, vector scale);
39 vector globalToBox(vector v, vector shift, vector scale);
40 vector globalToBoxSize(vector v, vector scale);
41
42 float draw_TextWidth_WithColors(string s, vector size);
43 float draw_TextWidth_WithoutColors(string s, vector size);
44