2 CLASS(XonoticTextLabel) EXTENDS(Label)
3 METHOD(XonoticTextLabel, configureXonoticTextLabel, void(entity, float, string))
4 METHOD(XonoticTextLabel, draw, void(entity))
5 ATTRIB(XonoticTextLabel, fontSize, float, SKINFONTSIZE_NORMAL)
6 ATTRIB(XonoticTextLabel, alpha, float, SKINALPHA_TEXT)
7 ATTRIB(XonoticTextLabel, disabledAlpha, float, SKINALPHA_DISABLED)
8 ENDCLASS(XonoticTextLabel)
9 entity makeXonoticTextLabel(float theAlign, string theText);
13 entity makeXonoticTextLabel(float theAlign, string theText)
16 me = spawnXonoticTextLabel();
17 me.configureXonoticTextLabel(me, theAlign, theText);
20 entity makeXonoticHeaderLabel(string theText)
23 me = makeXonoticTextLabel(0.5, theText);
24 me.colorL = SKINCOLOR_HEADER;
25 me.alpha = SKINALPHA_HEADER;
29 void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText)
31 me.configureLabel(me, theText, me.fontSize, theAlign);
33 void XonoticTextLabel_draw(entity me)
35 SUPER(XonoticTextLabel).draw(me);