Will you please add inspector OnClick event into Image Button as UIButton has?
It's very helpfull and you can do it by few lines of code:
Add into UIImageButtonInspector at the end of OnInspectorGUI:
GUILayout.Space(3f);
NGUIEditorTools.DrawEvents("On Click", mButton, mButton.onClick);
And add into UIImageButton:
using System.Collections.Generic;
static public UIImageButton current;
public List<EventDelegate> onClick = new List<EventDelegate>();
void OnClick ()
{
if (isEnabled)
{
current = this;
EventDelegate.Execute(onClick);
current = null;
}
}