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

Pages: [1]
1
NGUI 3 Support / Re: Changing focus to scrollview
« on: January 02, 2014, 12:00:12 PM »
Sorry for my explanation hehe,

I have a scroll view with some sprites inside that have colliders and buttons scripts. There is and original function called "UICenter on click" to center in the scrollview, I have modified the OnClick to OnSelect and assigned "UIKey Buttons" to each sprite, so I can control them by keys, centering the selected sprite in the scrollview.

As you comment, I'll try to change the focus on the buttons to the sprites inside the Scrollview with the UICamera function when I press the outside button of level select :)

Thanks!

2
NGUI 3 Support / Changing focus to scrollview
« on: January 02, 2014, 08:03:21 AM »
Hello all!

Let's see if I can explain my problem in an understandable way :)

I have a level select screen with a list of item throught i move with keys (UIKey Buttons), when I select a level i need to show a "layer" on top with a skin selection with a scrollview and want to navigate with buttons too (I place it out of see, and move in with TweenPosition).

My problem is that when I move the layer in, the focus continue in the level selection, so I can't move the skin with buttons because of focus. If I click on the scrollview, then I can move que skins with the buttons (I have duplicate and modified the UI Center On Click script, to UICenter on Select), but i don't know how to change the focus when I select the level.

In addition, can I disable buttons when I click other buttons?

I hope is understandable ^^

Thanks!!

3
NGUI 3 Support / [Solved] Box Collider Issue
« on: December 30, 2013, 04:28:23 AM »
Aww! Great!
That's what I'll do :)

Thanks!

4
NGUI 3 Support / Re: Box Collider Issue
« on: December 28, 2013, 07:42:46 AM »
Hello ArenMook,

Thanks for your answer, from it I have find were it crash :).

If i follow your steps, and have an atlas and a sprite seleted for the UIsprite it works fine.
The problem comes when i don't use an atlas because i only use the UIsprite as a hit zone, if i don't select any atlas and let it to "none" then shows the error.

I'll use the box collider on the UIlabel instead than using it on the UIsprite.

Thanks a lot!

5
NGUI 3 Support / Re: Box Collider Issue
« on: December 27, 2013, 06:24:44 AM »
Hi ArenMook!

For sure I'm using f3, at least it came with a txt that start with:

----------------------------------------------
            NGUI: Next-Gen UI kit
 Copyright © 2011-2013 Tasharen Entertainment
            Version 3.0.7 f3
    http://www.tasharen.com/?page_id=197
            support@tasharen.com
----------------------------------------------

And donwloaded the files thesame day, hehe :).
I saw in another post that this was solved in that version, that's why i was surprised about this issue :/

6
NGUI 3 Support / [Solved] Box Collider Issue
« on: December 24, 2013, 04:52:32 AM »
Hello,

I'm using NGUI 3.0.7 f3 and have problems when I use box collider.
I've got a clean scene, create a sprite and create a label as a child to make a button. When I Attach a box collider to the sprite it takes the same size, until here all ok.
When I play the game, the console show that errors:

Invalid parameter because it was infinity or nan.
UnityEngine.BoxCollider:set_center(Vector3)
NGUITools:UpdateWidgetCollider(BoxCollider, Boolean) (at Assets/NGUI/Scripts/Internal/NGUITools.cs:292)
UIWidget:ResizeCollider() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:571)
UIWidget:OnValidate() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:681)
UISprite:OnValidate() (at Assets/NGUI/Scripts/UI/UISprite.cs:293)

and that

dest.radius>=0.0f
UnityEngine.BoxCollider:set_size(Vector3)
NGUITools:UpdateWidgetCollider(BoxCollider, Boolean) (at Assets/NGUI/Scripts/Internal/NGUITools.cs:293)
UIWidget:ResizeCollider() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:571)
UIWidget:OnValidate() (at Assets/NGUI/Scripts/Internal/UIWidget.cs:681)
UISprite:OnValidate() (at Assets/NGUI/Scripts/UI/UISprite.cs:293)

It get solved If in the UIsprite, I desactivate the checkbox "Box Collider : Auto adjust to match".

Is someone having the same problem?

Thanks!!

PD: Sorry for my english :$

7
NGUI 3 Support / Re: NGUI license and GIT teamwork
« on: December 23, 2013, 04:41:20 AM »
Perfect :)!

Thanks for your response, I've purchased one license. Now its time to play with NGUI ^^!

8
NGUI 3 Support / NGUI license and GIT teamwork
« on: December 20, 2013, 03:58:34 AM »
Hello all! :)

We are a little indie videogame studio that have just started to create our first game (we are 4 people). In the studio I am the only who will work on the GUI then we need to buy one license (that's all we can afford by now hehe). In the studio we are using GIT to work, so the question is, will my teammates be able to compile the project with the GUI? Or will appear conflicts in the project?

Thanks!!

Pages: [1]