X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fdraw.qh;h=873ccb6df31e3695760db9b33002da2fe1a23665;hb=b41b1b47e0f20ed2d30358311ba111d82da56f54;hp=bd75795bbc0cf633cdc0f4ef2c6ee66ccf7b0ad6;hpb=71e6c75bc408ae5a116f296797c49c0cef7be113;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/draw.qh b/qcsrc/menu/draw.qh index bd75795bb..873ccb6df 100644 --- a/qcsrc/menu/draw.qh +++ b/qcsrc/menu/draw.qh @@ -1,9 +1,9 @@ +#ifndef DRAW_H +#define DRAW_H + // 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 +26,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 +41,4 @@ vector globalToBoxSize(vector v, vector scale); float draw_TextWidth_WithColors(string s, vector size); float draw_TextWidth_WithoutColors(string s, vector size); +#endif