X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Ftextlabel.c;h=c0e0806d83dc379e5276d48f2c30fc5a95ec3c0e;hb=5dbda91e68e08abcedef699f99c3654c8f97242b;hp=020f79035f1bf05c8b6a515c5e5878809f6c6b5c;hpb=b49d3f3ffff847ec761e15fcc6285a736cddcba3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/textlabel.c b/qcsrc/menu/xonotic/textlabel.c index 020f79035..c0e0806d8 100644 --- a/qcsrc/menu/xonotic/textlabel.c +++ b/qcsrc/menu/xonotic/textlabel.c @@ -17,12 +17,21 @@ entity makeXonoticTextLabel(float theAlign, string theText) me.configureXonoticTextLabel(me, theAlign, theText); return me; } -void configureXonoticTextLabelXonoticTextLabel(entity me, float theAlign, string theText) +entity makeXonoticHeaderLabel(string theText) +{ + entity me; + me = makeXonoticTextLabel(0.5, theText); + me.colorL = SKINCOLOR_HEADER; + me.alpha = SKINALPHA_HEADER; + me.isBold = TRUE; + return me; +} +void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText) { me.configureLabel(me, theText, me.fontSize, theAlign); } -void drawXonoticTextLabel(entity me) +void XonoticTextLabel_draw(entity me) { - drawLabel(me); + SUPER(XonoticTextLabel).draw(me); } #endif