-#ifdef INTERFACE
-CLASS(XonoticColorButton) EXTENDS(RadioButton)
+#ifndef COLORBUTTON_H
+#define COLORBUTTON_H
+#include "../item/radiobutton.qc"
+CLASS(XonoticColorButton, RadioButton)
METHOD(XonoticColorButton, configureXonoticColorButton, void(entity, float, float, float))
METHOD(XonoticColorButton, setChecked, void(entity, float))
METHOD(XonoticColorButton, draw, void(entity))
entity makeXonoticColorButton(float theGroup, float theColor, float theValue)
{
entity me;
- me = spawnXonoticColorButton();
+ me = NEW(XonoticColorButton);
me.configureXonoticColorButton(me, theGroup, theColor, theValue);
return me;
}