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

Pages: [1]
1
NGUI 3 Documentation / Re: UIScrollBar
« on: September 21, 2014, 03:43:00 AM »
Thanks, it now works. Strangely enough when I click up in the keyboard when the Vertical scrollbar is selected it actually moves down and the other way around (hitting down goes up). Any ideas of what could this be?

EDIT: I just solved it, silly me. Changing direction to bottomToTop did it.
EDIT2: Turns out it is NOT SOLVED, changing the direction to bottomToTop allows me to control it with keyboard as I want but I would like the scrollbar to be topToBottom.

2
NGUI 3 Documentation / Re: UIScrollBar
« on: September 20, 2014, 06:23:11 AM »
Hi, is it possible to control a scrollbar with keyboard and gamepad? The full UI that we are doing is controlled with keyboard and gamepad (just using UI Key Navigation), is there something similar to control a scrollbar?

3
Ok, solved one issue found another one.

My problem was that the input axis had gravity set to 10 and that seems to break the UIKeyNavigation system.

Now, I have another problem. When I change to another panel the focus is correctly given to a button I have there using the "Select on Click". But when I want to return to the main panel and I do the same with the button there (i.e. I "Select on Click" one button of the main panel) the button in the main panel doesn't regain focus for some reason. Any tips on what may be wrong?

4
I'm in the last NGUI version (just updated yesterday). It may be worth mentioning that I updated from NGUI 2.7...

Unity version 4.3.4.

Not in my dev computer at the moment, will try tonight with a clean scene. Maybe something in the upgrade process is messing things up.

5
Hi!

I already asked this directly on the UIKeyNavigation documentation thread but I will add it here in case it gets more visibility and can help others.

I'm having a weird issue with key navigation. I have 4 buttons, the menu works fine with mouse. Now that I added UIKeyNavigation to them I can select them also with keyboard. All fine until here. But the input seems to be too sensitive as I get erratic behaviour. Only if I press (and depress) the keys really, really fast I get the correct behaviour. Otherwise the focus changes to a random button (sometimes even the same one that was already on focus). It looks as if registering many key presses when only doing it once.

Any ideas?

6
NGUI 3 Documentation / Re: UIKeyNavigation
« on: June 10, 2014, 02:08:30 AM »
I'm having a weird issue here. I have 4 buttons, the menu works fine with mouse. Now that I added UIKeyNavigation to them I can select them also with keyboard. All fine until here. But the input seems to be too sensitive as I get erratic behaviour. Only if I press (and depress) the keys really, really fast I get the correct behaviour. Otherwise the focus changes to a random button (sometimes even the same one that was already on focus). It looks as if registering many key presses when only doing it once.

Any ideas?

7
NGUI 3 Support / Re: Problem with UISoundVolume
« on: April 13, 2013, 03:16:55 PM »
Many thanks Aren! It makes sense.

8
NGUI 3 Support / Re: Animation on button click.
« on: April 11, 2013, 03:06:03 PM »
I'm a newbie on NGUI also but I already got tweens (in your case animations) working on my panels when I click on buttons.

Simply:

-Attach UIButtonPlayAnimation to your button
-Fill in the parameters for it right in the inspector. No need to script anything for this.
-Check this example that comes along NGUI, there you'll find what you are looking for: http://www.tasharen.com/ngui/example8.html

In any case, in your script I can see some strange things:

- OnLoadClicked() is not part of the NGUI events as far as I can see. It should be OnClick()
- UIButtonPlayAnimation is a class, you just can't use it like if it is a method...

Stilghar

9
NGUI 3 Support / Re: Problem with UISoundVolume
« on: April 11, 2013, 02:27:50 PM »
Thanks for the tip! This helps!

...still I don't understand the purpose of NGUITools.SoundVolume though... What is the use case for it then?

10
NGUI 3 Support / Re: Problem with UISoundVolume
« on: April 10, 2013, 04:01:59 PM »
Ok, then it seems I can't use UISoundVolume for what I wanted.

I have created a menu where I have two sliders one for music and one for effects. I wanted these to affect all the music and sounds in my game. Any tip on how to achieve this? What is the point then of having NGUITools.soundVolume in the first place then? I don't get it...

Stilghar

11
NGUI 3 Support / [solved]Problem with UISoundVolume
« on: April 10, 2013, 03:56:52 PM »
Hi!

I recently bought NGUI, having lots of fun with it! Great tool. Now the question of a newbie in trouble:

I have attached the following simple script to my main camera (not the UI camera):

http://hastebin.com/coyiloxugu.py

And then I put a UISoundVolume script on an NGUI slider. But the volume of the song played doesn't seem to be affected. What may be wrong? I tried adding a Debug.Log inside the OnSliderChange of the UISoundVolume to see if this was called at all and it seems to be the case. So, I don't understand then what could be the problem.

Any help?

Stilghar

Pages: [1]