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

Pages: [1]
1
I have build a UIGrid and put some button in it, then use other two buttons to scroll the grid as pages.

Now since grid has its own scrolling speed, when I click the button in the page which are not totally scrolled in, button event will be triggered, even the page it belongs still half culling outside the grid.

It there any way I can disable the content outside of the clip?


For example, as you can see the grid is moving, but I can click Envovle or Button as soon as I react fast enough. Even they belong to two different grid Item.

The ideal is you cant click any of them since the whole grid is moving.

Any thoughts?
Thanks!

2
NGUI 3 Support / Is there a example for hover tooltip?
« on: January 19, 2014, 11:36:02 AM »
Here is what I am thinking, I want to build a list of interactive area, and when player moves mouse over one of it, there will be some text at the the fix position, for example, at the the bottom of the screen, to act as description text. And then player moves mouse over other area, the text will be changed accordingly.

My solution will be using onHover on every interactive area, and use send massage or delegate to tell the main script which area is hovering, and to show the text accordingly.

But if there is a better solution already integrated in NGUI, I'd love to know it.

Thanks.

3
NGUI 3 Support / How can I use Dynamic Font?
« on: December 22, 2013, 09:07:35 AM »
I want to use dynamic font because I can change the font.
But I found as soon as the text content is overflowing, all the other character will go up and out of the label widget, instead of go down like normal text arranging.

I have tried to change the pivot of widget, not working.

Any ideas?

Thanks.

4
NGUI 3 Support / Re: Generate a table and control its alpha
« on: December 19, 2013, 09:32:45 PM »
Thanks a lot.

Though I know how to get current clicked button (by UIButton.current), but looks like table item's is triggered by UIPlay Tween component.

So is there a same function that I can get current clicked GO with UIPlay Tween on it?


5
NGUI 3 Support / Generate a table and control its alpha
« on: December 18, 2013, 08:36:36 AM »
I had it in old version 3.0.0, but in 3.0.7 it is broken.

Here is what did I do: I made a prefab of item that I want to generate, then attached script of generating by useing NGUITools.AddChild, set parent as Table GO with UITable script, set prefabs as my customize prefab.

Then, I set the alpha of table's parent panel as 0, gave it a tween alpha, told it to tween from 0 to 1. After that, a button to play this tween is installed.

Now though the UITable is functional, but when I press the button, all the table content are just pop out. Those items attached under the Table GO was normally changing alpha from 0 to 1.

So what is the problem here?
Is the draw call sequence changed or what?

Thanks.




BTW, if I want to expand the table content once at a time, what should I do?
By using UIEventlisterner, or just make my own script?
How could I told table content to reverse the tween scale?

6
that's the hard code solution

I thought it could be done in NGUI component, like there is a public variable called "distance(x, y, z)" then you just need to fill the number to tell the object how much to move.


But thanks anyway.

7
NGUI 3 Support / Re: 3.0 documentation update
« on: September 26, 2013, 11:36:24 AM »
anyway to pass the variable in the label text?
just like the color code

8
Image a counter, every time player click a button or some other function pass the variable to add the counter, this sprite will go forward.

Is there any way I can just input the movement distance in tween component? Or I have to use the script to hard code the movement distance?

Right now tween of NGUI could only assign the start position and destination. But I want the vector variable.

Thanks.

Pages: [1]