-#ifdef INTERFACE
-CLASS(XonoticButton) EXTENDS(Button)
- METHOD(XonoticButton, configureXonoticButton, void(entity, string, vector))
+#ifndef BUTTON_H
+#define BUTTON_H
+#include "../item/button.qc"
+CLASS(XonoticButton, Button)
+ METHOD(XonoticButton, configureXonoticButton, void(entity, string, vector));
ATTRIB(XonoticButton, fontSize, float, SKINFONTSIZE_NORMAL)
ATTRIB(XonoticButton, image, string, SKINGFX_BUTTON)
ATTRIB(XonoticButton, grayImage, string, SKINGFX_BUTTON_GRAY)
entity makeXonoticButton(string theText, vector theColor)
{
entity me;
- me = spawnXonoticButton();
+ me = NEW(XonoticButton);
me.configureXonoticButton(me, theText, theColor);
return me;
}