-#ifdef INTERFACE
-CLASS(XonoticCheckBox) EXTENDS(CheckBox)
+#ifndef CHECKBOX_H
+#define CHECKBOX_H
+#include "../item/checkbox.qc"
+CLASS(XonoticCheckBox, CheckBox)
METHOD(XonoticCheckBox, configureXonoticCheckBox, void(entity, float, float, string, string))
METHOD(XonoticCheckBox, setChecked, void(entity, float))
ATTRIB(XonoticCheckBox, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
{
entity me;
- me = spawnXonoticCheckBox();
+ me = NEW(XonoticCheckBox);
me.configureXonoticCheckBox(me, theYesValue, theNoValue, theCvar, theText);
return me;
}