Author Topic: Problem with PopupList  (Read 3888 times)

TheStringSerpent

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Problem with PopupList
« on: April 15, 2015, 09:50:20 AM »
Hi.

I have a Settings window in my game where the player can set screen resolution, mouse settings, display name and such..

The screen resolution can be set selecting your resolution from a PopupList.. Just underneath the Dropdown Menu there's a UIInput field where the player can enter his Display Name..

So.. when trying to select a resolution from the Dropdown menu, the menu overlaps the UIInput field making it impossible to hover over the list-values and selecting them. I could solve it by redesigning the settings window moving the input field further down, but there has to be another way, right?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with PopupList
« Reply #1 on: April 16, 2015, 07:30:48 AM »
Popup list is created as the highest widget on the same panel where the popup list resides.

If you have more than one panel, and another panel with a higher depth has some element (like your input), then that input will indeed be on top of your popup list.

TheStringSerpent

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Problem with PopupList
« Reply #2 on: April 17, 2015, 05:28:01 AM »
Thank you, but all the elemets appear right. The Popup lists dropdown appears on top of the input field.. but the values that are overlapping the input field can't be hovered or selected.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with PopupList
« Reply #3 on: April 18, 2015, 12:48:17 PM »
Then check your event type on the UICamera. It needs to be 3D UI. My guess is you set it to 3D instead.