]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/draw.qh
Rename defs to qh
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / draw.qh
index bd75795bbc0cf633cdc0f4ef2c6ee66ccf7b0ad6..50608d1f5cfe1553bbaa41d7b71c0b0bb61f71ea 100644 (file)
@@ -1,9 +1,39 @@
+#ifndef DRAW_H
+#define DRAW_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+    #include "../common/util-pre.qh"
+    #include "sys-pre.qh"
+    #include "../dpdefs/menudefs.qh"
+    #include "../dpdefs/keycodes.qh"
+    #include "sys-post.qh"
+    #include "config.qh"
+    #include "../warpzonelib/mathlib.qh"
+    #include "../common/util.qh"
+    #include "../common/test.qh"
+    #include "oo/base.qh"
+    #include "../common/playerstats.qh"
+    #include "../common/teams.qh"
+    #include "../common/constants.qh"
+    #include "../common/mapinfo.qh"
+    #include "../common/campaign_common.qh"
+    #include "../common/weapons/weapons.qh"
+    #include "../common/counting.qh"
+    #include "../common/command/markup.qh"
+    #include "../common/command/rpn.qh"
+    #include "../common/command/generic.qh"
+    #include "../common/command/shared_defs.qh"
+    #include "../common/urllib.qh"
+    #include "../common/monsters/monsters.qh"
+    #include "command/menu_cmd.qh"
+    #include "menu.qh"
+#elif defined(SVQC)
+#endif
+
 // from the engine
 vector drawfontscale;
 #define draw_fontscale drawfontscale
-#define draw_fontscale_x drawfontscale_x
-#define draw_fontscale_y drawfontscale_y
-#define draw_fontscale_z drawfontscale_z
 
 vector draw_shift;
 vector draw_scale;
@@ -26,6 +56,7 @@ void draw_Fill(vector theOrigin, vector theSize, vector theColor, float theAlpha
 void draw_Text(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
 void draw_CenterText(vector origin, string text, vector size, vector color, float alpha, float allowColorCodes);
 float draw_TextWidth(string text, float allowColorCodes, vector size);
+float draw_CondensedFontFactor(string theText, float ICanHasKallerz, vector SizeThxBye, float maxWidth);
 string draw_TextShortenToWidth(string text, float maxWidth, float allowColorCodes, vector size);
 float draw_TextLengthUpToWidth(string text, float maxWidth, float allowColorCodes, vector size);
 
@@ -40,3 +71,4 @@ vector globalToBoxSize(vector v, vector scale);
 
 float draw_TextWidth_WithColors(string s, vector size);
 float draw_TextWidth_WithoutColors(string s, vector size);
+#endif
\ No newline at end of file