2D Toolkit Forum

2D Toolkit => Support => Topic started by: DNSavar on September 22, 2014, 09:46:15 pm

Title: Bug with Input
Post by: DNSavar on September 22, 2014, 09:46:15 pm
Hi,

I found a little bug in button behavior.

If you set your button to send msg when it is "Released" and your button do some stuff but finally disables input, the msg is sent 2 times.

It happens when your button start a transition and you want to block input during transition by example. When input are enabled/disabled, inputs are verified so, the input is triggered 2 times. Not a big deal, but it can be dangerous...
Title: Re: Bug with Input
Post by: unikronsoftware on September 23, 2014, 10:51:18 am
Which button class is this? (tk2dUIItem, or tk2dBUtton)
Title: Re: Bug with Input
Post by: DNSavar on October 28, 2014, 12:45:46 pm
Sorry, I didn`t receive notification of your answer...

I remember It was with a button, but I don`t remember if it is the UIItem of UIButton...