]> icculus.org git repositories - divverent/nexuiz.git/blob - qcsrc/menu-div0test/draw.qh
add player model selector; add function draw_CenterText
[divverent/nexuiz.git] / qcsrc / menu-div0test / draw.qh
1 vector draw_shift;
2 vector draw_scale;
3 float draw_alpha;
4
5 void draw_reset();
6 void draw_setMousePointer(string pic);
7 void draw_drawMousePointer(vector where);
8
9 void draw_PreloadPicture(string pic);
10 void draw_ButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
11 void draw_VertButtonPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha);
12 void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha, vector theBorderSize);
13 void draw_Picture(vector origin, string pic, vector size, vector color, float alpha);
14 void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha);
15 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
16 void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
17 float draw_TextWidth(string text, float allowColorCodes);
18 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes);
19 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes);
20
21 void draw_SetClip();
22 void draw_SetClipRect(vector theOrigin, vector theScale);
23 void draw_ClearClip();
24
25 vector boxToGlobal(vector v, vector shift, vector scale);
26 vector boxToGlobalSize(vector v, vector scale);
27 vector globalToBox(vector v, vector shift, vector scale);
28 vector globalToBoxSize(vector v, vector scale);
29
30 float draw_NeedResizeNotify;
31
32 string draw_currentSkin;