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

Pages: [1]
1
NGUI 3 Support / Re: UIKey Binding - keyboard+mouse selection problem
« on: December 10, 2014, 10:17:04 AM »
Actually I was talking about both the hover event and the selection, I just wasn't sure how they were separate things. It makes a lot more sense now. However, I'm still unable to get these two to play nicely with each other.

For example, it is confusing that the menu behaves differently depending on if it's called with UIKeyBinding or a mouse click (one creates a selection, the other does not). I can see the logic behind it though.

Am I correct to assume that the selection piggybacks on the hover event for displaying what its current selection is? If that is the case I think that's where most of my confusion comes from. In part because it looks like there's "sometimes" two hovers/selections at the same time, but also because the mouse can hide the selection by hovering it and leaving (making the button enter the "Normal" state, despite still being selected).

My ideas for solving my previously mentioned problems would be to:
- Create a selection both when clicking and using UIKeyBinding to call the menu.
- Have the selection snap to the button the mouse is currently hovering.
- Not have the UIButton enter its Normal state if the button is selected but the mouse leaves.

Quick edit: also make the selection not accept mouse input to move itself (it jumps to new buttons when the mouse have moved X distance anywhere on the screen).

Is this possible with the provided scripts or should I just bite the bullet and get familiar with the code side of things?

Again, thanks for your time.

2
NGUI 3 Support / UIKey Binding - keyboard+mouse selection problem
« on: December 08, 2014, 08:07:05 AM »
Hey, I've been searching for this and could not find anything. Sorry if it's already answered somewhere.

I have a button that pops a typical settings meny, either by clicking said button or hitting escape using the UIKey Binding script. The method used is UIFlipActive/FlipActive. I'm also using UIKey Navigation to control the menu with the keyboard. So far so good, it works.

The issues I've run into are these:
- I do not get a selection controllable by the keyboard if I call the menu with the mouse.
- The keyboard selection is also controlled by the mouse by just dragging the mouse anywhere on the screen.
- I get both a keyboard selection and a mouse selection at the same time if I call the menu with UIKey Binding.
- I lose the keyboard selection if I hover it with the mouse. It is still there and can interact with its currently selected menu option and reappears if I try to move it though.

I'm not the coder on the project but is there any way I can fix these things?
Thanks!

3
NGUI 3 Support / Re: Unity 4.6 and Ngui 3.7.5 problem
« on: December 03, 2014, 08:05:38 AM »
Hey, just chiming in on this one with some more info:

In the editor: all widgets parented directly under my UIRoot snaps to the center of said UIRoot and can not be moved. The representation of how they are anchored relative to the screen is lost as it's just a pile of stuff on top of each other in the center. It makes it hard to work with the layout.

It works just fine once the game runs however.

Pages: [1]