]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/textlabel.qc
Merge branch 'master' into Mario/hagar_notfixed
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / textlabel.qc
1 #include "textlabel.qh"
2
3 entity makeXonoticTextLabel(float theAlign, string theText)
4 {
5         entity me;
6         me = NEW(XonoticTextLabel);
7         me.configureXonoticTextLabel(me, theAlign, theText);
8         return me;
9 }
10 entity makeXonoticHeaderLabel(string theText)
11 {
12         entity me;
13         me = makeXonoticTextLabel(0.5, theText);
14         me.colorL = SKINCOLOR_HEADER;
15         me.alpha = SKINALPHA_HEADER;
16         me.isBold = true;
17         return me;
18 }
19 void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText)
20 {
21         me.configureLabel(me, theText, me.fontSize, theAlign);
22 }
23 void XonoticTextLabel_draw(entity me)
24 {
25         SUPER(XonoticTextLabel).draw(me);
26 }