Author Topic: UIPopUpList display  (Read 3824 times)

xstahef

  • Guest
UIPopUpList display
« on: August 06, 2012, 07:07:04 AM »
Hello,

I'm using an UIPopUpList to display a list of supported resolutions. But I don't know why, when the list is displayed, some items are displayed behind some other UI elements like sliders.
I'm checking about Depht on DropDownList created but it seems correct.

Could you please tell me where is my mistake ?

Thanks for your time

PhilipC

  • Guest
Re: UIPopUpList display
« Reply #1 on: August 06, 2012, 10:42:42 AM »
Are the different elements coming from different atlases? if so try adjusting the z value of the object.

xstahef

  • Guest
Re: UIPopUpList display
« Reply #2 on: August 06, 2012, 12:47:32 PM »
Yes, they come from different atlases. I'm trying to adjust the z value but it is the same.
So, I put images on the same atlas and this solve the problem :)

Thanks for your help.

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: UIPopUpList display
« Reply #3 on: May 20, 2013, 03:52:21 PM »
I am having this issue. The only two atlases are the background of the dialog and the popup list (same atlas) and the atlas for the font.

Some of the text from the dialog is showing in front of the text entries of the PopupList. Adjusting the Z of the popup list doesn't seem to help.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPopUpList display
« Reply #4 on: May 20, 2013, 08:55:09 PM »
There was a thread on this like two days ago with a solution posted inside.

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: UIPopUpList display
« Reply #5 on: May 21, 2013, 11:24:48 AM »
Weird, my search is only finding this thread :-(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

coeing

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 11
    • View Profile
    • slash games
Re: UIPopUpList display
« Reply #7 on: June 20, 2013, 04:50:29 AM »
I am having this issue. The only two atlases are the background of the dialog and the popup list (same atlas) and the atlas for the font.

Some of the text from the dialog is showing in front of the text entries of the PopupList. Adjusting the Z of the popup list doesn't seem to help.

Hi NaxIonz,

I had the same issue today. The thing is, that you need another panel which contains the popup list. The drop-down will be placed on this panel then as well:

Panel
- Widget A
- Widget B
- Popup List Panel
-- Popup List
--- Popup List Label
--- Popup List Sprite
- Widget C
- Widget D

The reason for this is, that the sprites are drawn in one draw call and the dynamic font is drawn in another one. The elements in one draw call always have the same z coordinate.

But when you have an open drop-down list, you want some of the texts drawn below the drop-down list background (the texts from the other widgets) and some above it (the texts from the items in the drop down list). So you will need four draw calls, first the two of the main panel and then the two for the popup list.

@ArenMook: Please correct me if I explained something wrong :) Maybe a hint would be nice somewhere as it isn't obvious immediately.
Visit slash games at http://www.slashgames.org

Indie Game Developer from Hamburg, Germany.