3 #include "../item/label.qc"
4 CLASS(XonoticTextLabel, Label)
5 METHOD(XonoticTextLabel, configureXonoticTextLabel, void(entity, float, string))
6 METHOD(XonoticTextLabel, draw, void(entity))
7 ATTRIB(XonoticTextLabel, fontSize, float, SKINFONTSIZE_NORMAL)
8 ATTRIB(XonoticTextLabel, alpha, float, SKINALPHA_TEXT)
9 ATTRIB(XonoticTextLabel, disabledAlpha, float, SKINALPHA_DISABLED)
10 ENDCLASS(XonoticTextLabel)
11 entity makeXonoticTextLabel(float theAlign, string theText);
12 entity makeXonoticHeaderLabel(string theText);
16 entity makeXonoticTextLabel(float theAlign, string theText)
19 me = NEW(XonoticTextLabel);
20 me.configureXonoticTextLabel(me, theAlign, theText);
23 entity makeXonoticHeaderLabel(string theText)
26 me = makeXonoticTextLabel(0.5, theText);
27 me.colorL = SKINCOLOR_HEADER;
28 me.alpha = SKINALPHA_HEADER;
32 void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText)
34 me.configureLabel(me, theText, me.fontSize, theAlign);
36 void XonoticTextLabel_draw(entity me)
38 SUPER(XonoticTextLabel).draw(me);