#ifdef INTERFACE
-CLASS(XonoticWeaponarenaCheckBox) EXTENDS(CheckBox)
+CLASS(XonoticWeaponarenaCheckBox, CheckBox)
METHOD(XonoticWeaponarenaCheckBox, configureXonoticWeaponarenaCheckBox, void(entity, string, string))
METHOD(XonoticWeaponarenaCheckBox, setChecked, void(entity, float))
ATTRIB(XonoticWeaponarenaCheckBox, fontSize, float, SKINFONTSIZE_NORMAL)
entity makeXonoticWeaponarenaCheckBox(string theWeapon, string theText)
{
entity me;
- me = spawnXonoticWeaponarenaCheckBox();
+ me = NEW(XonoticWeaponarenaCheckBox);
me.configureXonoticWeaponarenaCheckBox(me, theWeapon, theText);
return me;
}
void XonoticWeaponarenaCheckBox_configureXonoticWeaponarenaCheckBox(entity me, string theWeapon, string theText)
{
me.netname = theWeapon;
- me.checked = FALSE;
+ me.checked = false;
me.loadCvars(me);
me.configureCheckBox(me, theText, me.fontSize, me.image);
}
{
if(argv(i) == me.netname)
{
- me.checked = TRUE;
+ me.checked = true;
break;
}
}