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

Pages: [1]
1
NGUI 3 Support / Can't assign animation on UIToggle component (Legacy?)
« on: February 20, 2015, 11:19:41 AM »
I created an animation for a toggle button, expecting it to play forward/reverse whenever i toggle it on/off. However I can't assign the animation object to this component, like if it is not compatible.

I wonder if NGUI is still using legacy animations, if so, how can I convert mine or create new one using the old system?


Thanks,

2
Works like a charm.

Thanks,

3
I'm trying to find out the width of a text in the screen so that I can have a sprite that is always aligned to the text when it changes.

After some research I discovered the NGUIText.CalculatePrintedSize(). However, if I got it right, for it to work first I would need to set it's static bitmapFont property. The problem is that the UILabel in question does uses a TrueType font instead of a Bitmap one.

How can I find out the text's width in this case?


Thanks,

4
NGUI 3 Support / Re: OnHover while mouse button is pressed
« on: December 15, 2014, 10:47:25 AM »
I've done some tests with OnDragOver and checked the code, it seems like it will only dispatch if an object was "pressed".


If I put my finger on a empty spot and move it over an object it wont dispatch the OnDragOver, is this correct?

5
NGUI 3 Support / OnHover while mouse button is pressed
« on: December 11, 2014, 06:09:13 PM »
I want to listen to hover event on touch displays, and the original implementation does not dispatch if the "mouse" is down.

I found this post:
http://www.tasharen.com/forum/index.php?topic=5846.msg27678#msg27678

However, I was wondering if an official solution was created for this. As there are a lot of people working on the same project I'd prefer a solution that doesn't require me to change NGUI source code.

Thanks!

Pages: [1]