X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fdraw.qh;h=873ccb6df31e3695760db9b33002da2fe1a23665;hb=1556aa4ea70b3b275afb1cb4587e555fb44f71c3;hp=cfab348ed65862fd746eb5778058b9599d4105e0;hpb=49af10f3413b96e52055359d42288dbf5ec6972b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/draw.qh b/qcsrc/menu/draw.qh index cfab348ed..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); @@ -38,7 +39,6 @@ vector boxToGlobalSize(vector v, vector scale); vector globalToBox(vector v, vector shift, vector scale); vector globalToBoxSize(vector v, vector scale); -float draw_NeedResizeNotify; - float draw_TextWidth_WithColors(string s, vector size); float draw_TextWidth_WithoutColors(string s, vector size); +#endif