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 - Litherad

Pages: [1]
1
I guess he means UIButton? If so, I agree. My reason for using Image Button was to not have the color tween. In our game we have an option for making the player set the GUI color, and that is reset everytime the button is activated. There are workarounds, but they are all quite elaborate. The easiest one, modifying the script, has to be redone on each NGUI update.

2
NGUI 3 Support / Re: Using NGUI for pause menu
« on: February 19, 2014, 08:42:56 AM »
An easy way would be to add a TweenAlpha to your root panel, start with alpha = 0 and then hit Play(pauseEnabled);

3
NGUI 3 Support / Re: (!!!) Improving NGUI: Voice your opinion
« on: February 07, 2014, 03:01:05 AM »
The ability for a sliced sprite to wrap around content widgets, for example a textbox or even a collection of widgets of variable sizes (wrapping around their collective bounding box).
Unless the functionality is there and I just can't seem to find it :P

4
NGUI 3 Support / Re: Problem with sliding across buttons
« on: December 13, 2013, 08:57:23 AM »
Hi

I have 2 buttons next to eachother. In the previous versions stickypress allowed me to slide my fingers from one button to another, just like an oldschool D-pad. Without stickypress this isn't possible without some custom workaround?
I only discovered it when the testgroup suddenly found the game harder to play because they had to lift their finger when changing direction. I tried playing around with the OnDrag events, but I could only replicate the old behaviour by having a dummyobject with a collider being dragged between the buttons.

5
NGUI 3 Support / Re: Controls on mobile platform game
« on: August 06, 2013, 06:58:21 AM »
Holy cow! So easy and I missed it. Thank you!

6
NGUI 3 Support / Controls on mobile platform game
« on: August 05, 2013, 05:13:40 AM »
Hi there

I've used NGUI to much enjoyment for about a month now. I am making a platform game and have now run into an issue with the controls. I have a left and a right button which can be moved between seamlessly, however the lack of OnHover, or similar, on mobile devices makes this complicated without making my own button functionality, which wouldn't be too much of a hassle, but it just seems counterproductive now that I use NGUI for anything else GUI related. The problem is that the button must change from pressed to non-pressed and viceversa when a finger enters the button, no matter if you slide unto it or press down on it. When sliding unto it no events catches it, and if clicked and sliding off it no event catches it, resulting in it being stuck in a state appearance until lifting the finger.

How would you normally go about doing this? Usually I would just test if a finger was inside the Rect or not, but then I really can't take advantage of NGUI's nice button animations (or can I?). Any input is appreciated thanks ;)

Pages: [1]