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 void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText)
22 me.configureLabel(me, theText, me.fontSize, theAlign);
24 void XonoticTextLabel_draw(entity me)
26 SUPER(XonoticTextLabel).draw(me);