6 #include "../common/util-pre.qh"
8 #include "../dpdefs/menudefs.qh"
9 #include "../dpdefs/keycodes.qh"
10 #include "sys-post.qh"
12 #include "../warpzonelib/mathlib.qh"
13 #include "../common/util.qh"
14 #include "../common/test.qh"
16 #include "../common/playerstats.qh"
17 #include "../common/teams.qh"
18 #include "../common/constants.qh"
19 #include "../common/mapinfo.qh"
20 #include "../common/campaign_common.qh"
21 #include "../common/weapons/weapons.qh"
22 #include "../common/counting.qh"
23 #include "../common/command/markup.qh"
24 #include "../common/command/rpn.qh"
25 #include "../common/command/generic.qh"
26 #include "../common/command/shared_defs.qh"
27 #include "../common/urllib.qh"
28 #include "../common/monsters/monsters.qh"
29 #include "command/menu_cmd.qh"
36 #define draw_fontscale drawfontscale
42 void draw_reset(float cw, float ch, float ox, float oy);
43 void draw_beginBoldFont();
44 void draw_endBoldFont();
45 void draw_setMousePointer(string pic, vector theSize, vector theOffset);
46 void draw_drawMousePointer(vector where);
48 string draw_PreloadPicture(string pic);
49 string draw_PreloadPictureWithFlags(string pic, float f);
50 void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
51 void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
52 void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize);
53 void draw_Picture(vector origin, string pic, vector size, vector color, float alpha);
54 vector draw_PictureSize(string pic);
55 void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha);
56 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
57 void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
58 float draw_TextWidth(string text, float allowColorCodes, vector size);
59 float draw_CondensedFontFactor(string theText, float ICanHasKallerz, vector SizeThxBye, float maxWidth);
60 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes, vector size);
61 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes, vector size);
64 void draw_SetClipRect(vector theOrigin, vector theScale);
65 void draw_ClearClip();
67 vector boxToGlobal(vector v, vector shift, vector scale);
68 vector boxToGlobalSize(vector v, vector scale);
69 vector globalToBox(vector v, vector shift, vector scale);
70 vector globalToBoxSize(vector v, vector scale);
72 float draw_TextWidth_WithColors(string s, vector size);
73 float draw_TextWidth_WithoutColors(string s, vector size);