X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fdraw.qh;h=69178cb03eedb522c29a0597b22c9f09303133cb;hb=3cfa3eaf6856fe76f7fd8c945fbfab2e9e28014c;hp=95667434da10565e19be7562a169eec17f6b561d;hpb=ba0988ca930f50286f8cf3b6c114ebc6584964af;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/draw.qh b/qcsrc/menu/draw.qh index 95667434d..69178cb03 100644 --- a/qcsrc/menu/draw.qh +++ b/qcsrc/menu/draw.qh @@ -1,35 +1,4 @@ -#ifndef DRAW_H -#define DRAW_H - -#if defined(CSQC) -#elif defined(MENUQC) - #include "../common/util-pre.qh" - #include "sys-pre.qh" - #include "../dpdefs/menudefs.qc" - #include "../dpdefs/keycodes.qc" - #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 +#pragma once // from the engine vector drawfontscale; @@ -40,8 +9,8 @@ vector draw_scale; float draw_alpha; void draw_reset(float cw, float ch, float ox, float oy); -void draw_beginBoldFont(); -void draw_endBoldFont(); +#define draw_beginBoldFont() drawfont = FONT_USER + 3 +#define draw_endBoldFont() drawfont = FONT_USER void draw_setMousePointer(string pic, vector theSize, vector theOffset); void draw_drawMousePointer(vector where); @@ -71,4 +40,3 @@ 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