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

Pages: [1]
1
NGUI 3 Support / Re: UIButton sprite keeps resetting
« on: August 07, 2014, 05:42:34 AM »
Fixed... I used slightly different code here...

UIButton btt = ...
btt.normalSprite = "..."

aparently this works...

2
NGUI 3 Support / UIButton sprite keeps resetting
« on: August 07, 2014, 05:22:26 AM »
I have some widgets and in one I have a gender select, in the next one some options based on said gender. Once I select a gender, the buttons in the second widget should update accordingly...which actually happens...until I mouse over them and mouse out. When I mouse out, the sprite on the button reverts back to the original one... why?

Code goes something like this...

UISprite button= GameObject.Find ("Button1").GetComponent<UISprite> ();
button.spriteName = "somethingElse";

3
NGUI 3 Support / Re: Accordion-like interface
« on: August 07, 2014, 05:19:24 AM »
Yup, that is what I did in the end...on the tween callback for the widgets I tell the scrollview to recheck contents and refresh the scrollbar...and it works wonderfully.

Thanks for the help. I will however look into tables as well, might be a better solution...

4
NGUI 3 Support / Accordion-like interface
« on: August 05, 2014, 03:13:12 PM »
Hello everyone!

I am having some issues with something. I am trying to build an accordion-like interface, that is I have some labels and once you click on them a window appears underneath and pushes everything down.

I have managed to make all that work with anchoring and some scripting. However, if I happen to have more than 3 of these windows I would need to add a scrollbar to it...and there lies my problem.

I create a scrollview, take these...widgets, put them under the scrollview as children, throw in a scrollbar and...nothing happens. When I expand my widgets they do get clipped, at some point I even got the scrollbar to show, but whenever I drag it, nothing happens...

What am I missing?

Pages: [1]