Author Topic: Popup list problem  (Read 4878 times)

Warblader

  • Guest
Popup list problem
« on: November 18, 2012, 12:01:00 AM »
I have added a popup list button to a panel that is used for settings in a game.  When I click on the popup button, the list shows and I can move mouse pointer down on the items in the list. But for those items that is covering (in the same position) other widgets further down on the panel, the mouse will activate (as if I hover over them) those widgets that are under the popup list. The item in the list that is over the underlying widgets is not selectable by the mouse. If I click on an item in the list that is partial over the underlying widget, it will send the click action to the wrong widget (underlying widget).



Mouse pointer is where the red arrow points.  You see the 960 x 600 item is not highlighted, but the slider button is. If I click there the slider button will react as if I clicked on that.

Im using the latest version of NGUI on a Mac.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list problem
« Reply #1 on: November 18, 2012, 04:55:10 AM »
Sounds like you have a collider protruding past the popup list. Just move it back along the Z (+positive).

Warblader

  • Guest
Re: Popup list problem
« Reply #2 on: November 18, 2012, 09:14:08 AM »
I did try to move the popup button backwards (-z) but it's still the same and it's on all underlying widgets.

I will try moving all the other widgets forward (+z)

Warblader

  • Guest
Re: Popup list problem
« Reply #3 on: November 18, 2012, 09:19:23 AM »
Moving all the other widgets forward (+1 on z) helped!  Thanks for the hint!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list problem
« Reply #4 on: November 18, 2012, 03:44:36 PM »
+1 Z is backwards, not forwards. Z increases the deeper you get into the screen.