1 #include "textlabel.qh"
4 #include "../item/label.qc"
5 CLASS(XonoticTextLabel, Label)
6 METHOD(XonoticTextLabel, configureXonoticTextLabel, void(entity, float, string));
7 METHOD(XonoticTextLabel, draw, void(entity));
8 ATTRIB(XonoticTextLabel, fontSize, float, SKINFONTSIZE_NORMAL)
9 ATTRIB(XonoticTextLabel, alpha, float, SKINALPHA_TEXT)
10 ATTRIB(XonoticTextLabel, disabledAlpha, float, SKINALPHA_DISABLED)
11 ENDCLASS(XonoticTextLabel)
12 entity makeXonoticTextLabel(float theAlign, string theText);
13 entity makeXonoticHeaderLabel(string theText);
17 entity makeXonoticTextLabel(float theAlign, string theText)
20 me = NEW(XonoticTextLabel);
21 me.configureXonoticTextLabel(me, theAlign, theText);
24 entity makeXonoticHeaderLabel(string theText)
27 me = makeXonoticTextLabel(0.5, theText);
28 me.colorL = SKINCOLOR_HEADER;
29 me.alpha = SKINALPHA_HEADER;
33 void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText)
35 me.configureLabel(me, theText, me.fontSize, theAlign);
37 void XonoticTextLabel_draw(entity me)
39 SUPER(XonoticTextLabel).draw(me);