METHOD(VoretInputBox, setText, void(entity, string))\r
ATTRIB(VoretInputBox, fontSize, float, SKINFONTSIZE_NORMAL)\r
ATTRIB(VoretInputBox, image, string, SKINGFX_INPUTBOX)\r
- ATTRIB(VoretInputBox, onChange, void(entity, entity), SUB_Null)\r
+ ATTRIB(VoretInputBox, onChange, void(entity, entity), func_null)\r
ATTRIB(VoretInputBox, onChangeEntity, entity, NULL)\r
- ATTRIB(VoretInputBox, onEnter, void(entity, entity), SUB_Null)\r
+ ATTRIB(VoretInputBox, onEnter, void(entity, entity), func_null)\r
ATTRIB(VoretInputBox, onEnterEntity, entity, NULL)\r
ATTRIB(VoretInputBox, marginLeft, float, SKINMARGIN_INPUTBOX_CHARS)\r
ATTRIB(VoretInputBox, marginRight, float, SKINMARGIN_INPUTBOX_CHARS)\r
if(me.text != new)\r
{\r
setTextInputBox(me, new);\r
- me.onChange(me, me.onChangeEntity);\r
+ if(me.onChange)\r
+ me.onChange(me, me.onChangeEntity);\r
}\r
else\r
setTextInputBox(me, new);\r