3 CLASS(XonoticTextLabel, Label)
4 METHOD(XonoticTextLabel, configureXonoticTextLabel, void(entity, float, string))
5 METHOD(XonoticTextLabel, draw, void(entity))
6 ATTRIB(XonoticTextLabel, fontSize, float, SKINFONTSIZE_NORMAL)
7 ATTRIB(XonoticTextLabel, alpha, float, SKINALPHA_TEXT)
8 ATTRIB(XonoticTextLabel, disabledAlpha, float, SKINALPHA_DISABLED)
9 ENDCLASS(XonoticTextLabel)
10 entity makeXonoticTextLabel(float theAlign, string theText);
11 entity makeXonoticHeaderLabel(string theText);
15 entity makeXonoticTextLabel(float theAlign, string theText)
18 me = NEW(XonoticTextLabel);
19 me.configureXonoticTextLabel(me, theAlign, theText);
22 entity makeXonoticHeaderLabel(string theText)
25 me = makeXonoticTextLabel(0.5, theText);
26 me.colorL = SKINCOLOR_HEADER;
27 me.alpha = SKINALPHA_HEADER;
31 void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText)
33 me.configureLabel(me, theText, me.fontSize, theAlign);
35 void XonoticTextLabel_draw(entity me)
37 SUPER(XonoticTextLabel).draw(me);