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.


Topics - nah0y

Pages: 1 ... 3 4 [5]
61
NGUI 3 Support / UILabel effect size
« on: July 30, 2012, 10:10:04 AM »
Hi !

That would be really great if we could set a size for the effects outline and shadows from the UILabel object. Currently it takes a size of 1. But we need to make an outline of 3-4 pixels around a label...

I've tried modifiying the UILabel code to do that, but it seems that to do the outline, you're applying a shadow along 4 axes, and when I set to a size of 5 for examples, I have no outline, but an odd shadow around the 4 axes (up down left and right)

Maybe you could tell me how do to it properly ?

Thanks ;)

62
NGUI 3 Support / TweenPosition updateTable ?
« on: July 19, 2012, 07:48:02 AM »
Hi !

Is there a reason the TweenScale script has a updateTable functionality while TweenPosition do not ?

Thanks !

63
NGUI 3 Support / Atlas Algorithm
« on: July 18, 2012, 04:51:47 AM »
Hi !

Long time no see :)

Well, I have a set of sprites that I want to put in an atlas, the problem is that it seems that the algorithm you're using is not the best.
If I use all my sprites with Texture Packer and the "Max Rects" algorithm, everything fit in a 2048x2048 atlas, but in NGUI, it just does not fit and my images end up cut.

So, what is your advise on this ? Make two atlases ? Or maybe you have a magic update coming to improve the atlas algorithm ? :D

Thanks !

64
NGUI 3 Support / UISpriteAnimation number of frames
« on: July 08, 2012, 11:17:26 AM »
Hi !

Could you add a public property to retrieve the number of frames from an animation ?
You already have a List<string> mSpriteNames, could you make something like :
  1. public int frameCount
  2. {
  3.      get { return mSpriteNames.Count; }
  4. }

Thanks :)

65
NGUI 3 Support / Continuous touch detection
« on: June 28, 2012, 05:40:47 PM »
Hello !

Let's say I have two buttons on my game, on for going left, the other for going right.
And I want to receive the input everytime one of these buttons is pressed.

At the default configuration of NGUI. I will have to press on the left, release, then press on the right button for example.
But what if I want to stay pressed all the time and just move my mouse/fingers from one button to the other and still receive the pressed event ?

Thanks in advance :)

66
NGUI 3 Support / UITable entry collapsed animation
« on: June 22, 2012, 03:10:40 AM »
Hi again,

I have a scroll list used with UITable, with x rows.
When I click on a row, I trigger a UIButtonTween to change the scale of a child and make a sub-row appears (exactly as the Quest Log example).

But, what I want to achieve is not doing that by scale, but by just changing the position of my sub-row, you know, making it appears and moving down from the bottom of my row. The problem with this is my sub-row is taller than my row itself. So even if it's behind my row, it will be seen on the top of the row...

Is there a way to achieve this whithout using x Panel with clipping ?

67
NGUI 3 Support / UITable margin
« on: June 21, 2012, 12:35:30 PM »
Hello,

It would be really useful to add margins to a UITable.
Currently there is only padding, that will affect the space betweens the elements in the UITable. But if we could set a margins for around the UITable, that would be awesome.

Or maybe there is another way around ?

68
NGUI 3 Support / TweenPosition in "relative mode"
« on: June 21, 2012, 10:07:21 AM »
Hello,

I'm using the TweenPosition screen on some of my objects, and I always use them with a UIButtonTween script that triggers them.
The UIButtonTween is set to Play Direction : Toggle, so that when I click my button, it triggers forward the TweenPosition and when I release, it triggers back the TweenPosition.

But, the TweenPosition works by giving it a From and To position.
In the case of using "Play Direction : Toggle", could we just set one of the two (from or to) ? something like Padding.

Say for example my object is at (75, -50, 0), and I want to move it from 5px on the Y,
Actually, what I would do is set :
From : 75, -50, 0
To : 75, -45, 0

But can't we do something simpler ? Such as :
Padding : 0, 5, 0

69
NGUI 3 Support / Immediate Tweens
« on: June 21, 2012, 10:03:36 AM »
Hello,

I'm doing a lot of small "animations" (it's more state change) using UIButtonTween on a parent object, triggering a Tween on a child with a TweenPosition for example.

My problem is that I want the Tween to be immediate, so right now, I just put 0.000001 in the duration of the tween, but it's :
- ugly
- sometimes not working properly (when clicking like a mad person on the button)

It will be really useful to be able to put a duration of 0 so that it's immediate.

Of course, I could do all that using code, but here I just have to attach a script to my object and set a new position, color etc...

70
NGUI 3 Support / Flip sprites ?
« on: June 20, 2012, 09:13:07 AM »
Hi,

I want to know if there is a way to flip a sprite horizontally (or vertically) ?
I mean, if I want to play an animation on a character going left or right. I want to use only one set of animation, and just flip the sprites when I'm going left or right.

Thanks,

71
NGUI 3 Support / UIBasePanel missing ?
« on: June 19, 2012, 09:58:36 AM »
Hi !

I've just upgrade from free to paid version on NGUI (thanks for the awesomeness :D), and previously I had the script "UIBasePanel" on my UI Root (2D), but after upgrading, I have a Missing (Mono Script), and can't find the script anywhere in the NGUI folder.

In the free version it was in a DLL file, but maybe it's useless with the paid version ?
I guess it was to display the watermark etc... ?

Thanks.

72
NGUI 3 Support / UITable elements
« on: June 19, 2012, 04:14:35 AM »
Hi,

Is there a way to retrieve the list of children of a UITable ? I mean, I could just do a loop on the children of the Transform, but I want them in the same order as sorted by the UITable.

When I do : for (int i = 0; i < friendTable.GetChildCount(); i++)
I retrieve Friend 01, Friend 06, Friend 05 etc...

Thanks.

Pages: 1 ... 3 4 [5]