-#ifdef INTERFACE
-CLASS(XonoticTextLabel) EXTENDS(Label)
- METHOD(XonoticTextLabel, configureXonoticTextLabel, void(entity, float, string))
- METHOD(XonoticTextLabel, draw, void(entity))
- ATTRIB(XonoticTextLabel, fontSize, float, SKINFONTSIZE_NORMAL)
- ATTRIB(XonoticTextLabel, alpha, float, SKINALPHA_TEXT)
- ATTRIB(XonoticTextLabel, disabledAlpha, float, SKINALPHA_DISABLED)
-ENDCLASS(XonoticTextLabel)
-entity makeXonoticTextLabel(float theAlign, string theText);
-#endif
+#include "textlabel.qh"
-#ifdef IMPLEMENTATION
entity makeXonoticTextLabel(float theAlign, string theText)
{
entity me;
- me = spawnXonoticTextLabel();
+ me = NEW(XonoticTextLabel);
me.configureXonoticTextLabel(me, theAlign, theText);
return me;
}
{
SUPER(XonoticTextLabel).draw(me);
}
-#endif