-#ifdef INTERFACE
-CLASS(XonoticGametypeButton) EXTENDS(RadioButton)
+#ifndef GAMETYPEBUTTON_H
+#define GAMETYPEBUTTON_H
+#include "../item/radiobutton.qc"
+CLASS(XonoticGametypeButton, RadioButton)
METHOD(XonoticGametypeButton, configureXonoticGametypeButton, void(entity, float, string, string))
METHOD(XonoticGametypeButton, setChecked, void(entity, float))
ATTRIB(XonoticGametypeButton, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticGametypeButton(float theGroup, string theCvar, string theText)
{
entity me;
- me = spawnXonoticGametypeButton();
+ me = NEW(XonoticGametypeButton);
me.configureXonoticGametypeButton(me, theGroup, theCvar, theText);
return me;
}