var a = UIButton.create(“a_1.PNG”, “a_2”,0,0);
a.onTouchUpInside += onTouchUpInsidea;
void onTouchUpInsidea (UIButton obj)
{
}
First of all, this is how to init a UIButton of UIToolkit by Prime31. In the method onTouchUpInsidea, I got only one parameter, obj. Therefore, I can only control the button itself, or some other UIButton.
What if I’d like to control multi-ui elements? I cannot pass multi parameter into onTouchUpInsidea. And I’d like to set these UI elements local vars, instead of some class properties in the beginning of the class.
Actually I have to say that I’m not familiar with the delegate and event system of C#. But I’m thinking about that gotta be some approach for controlling multi buttons in UIToolkit.
Thank you very much.