2D Toolkit Forum

2D Toolkit => Support => Topic started by: hromoydron on July 16, 2013, 11:53:18 pm

Title: pass a parameter to the event
Post by: hromoydron on July 16, 2013, 11:53:18 pm
Hello!

I want to pass a parameter to the event.
Are there any standards methods for tk2dUI events?
Title: Re: pass a parameter to the event
Post by: unikronsoftware on July 16, 2013, 11:54:48 pm
No there isn't. You do get a reference to the current tk2dUIItem, you can use that to identify where it came from.
Title: Re: pass a parameter to the event
Post by: hromoydron on July 17, 2013, 01:31:01 am
How I can get reference to the current tk2dUIItem? I don't understand that.
Title: Re: pass a parameter to the event
Post by: unikronsoftware on July 17, 2013, 10:44:31 am
Use the OnDownUIItem action instead of OnDown - that variant will pass a parameter (i.e. the caller) to the event.
Title: Re: pass a parameter to the event
Post by: hromoydron on July 17, 2013, 11:04:39 pm
thank you.