Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Im_Lp

Pages: [1]
1
NGUI 3 Support / Re: UIButton disabled state bug
« on: May 27, 2014, 01:26:47 PM »
I did, but I do not believe that is the issue since it's not a color related issue but a sprite state issue.

This is how the background UIButton component looks right now for each of the buttons on my bar.


Now given 2 buttons A & B. Lets say Button A is currently on the "disabled" state. If I click Button B then A should be enabled and switch its sprite to the normal state, while button B should change to the "disabled" state. Like so:


Instead what occurs is that Button A stays using the "disabled" state sprite but responds to clicks while B shows disabled.



Head-scratching note: is that if I hover my mouse over the buttons, the sprites change to the correct states.

2
NGUI 3 Support / Re: UIButton disabled state bug
« on: May 26, 2014, 08:13:25 PM »
I hate to bring back a thread from the dead but the issue is still ocurring on the latest version of NGUI (3.6.0)

I am creating a navigation bar which highlights the currently selected "tab" by changing the enabled state of the sprites on the bar. It appears that whenever I toggle the state via UIButton.isEnabled or MyUIButtonObject.collider.enabled it doesn't trigger redraws. I went over it countless times thinking it was the FSM I wrote for the nav bar messing state changes but all navigation passed the unit tests I set in place.

As observed in different threads, hovering on/off the button does trigger the sprite changes.

Thoughts?

Pages: [1]