Author Topic: BUG: UIPopupList doesn't show lists with one item  (Read 2595 times)

Wahooney

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
BUG: UIPopupList doesn't show lists with one item
« on: December 04, 2012, 04:55:17 AM »
The title says it all, when a UIPopupList has one item it doesn't show anything, which I guess is fine when you're using it as a drop list, but as a menu item it is pretty much an ass ache.

Fbary

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: BUG: UIPopupList doesn't show lists with one item
« Reply #1 on: December 09, 2012, 09:59:59 AM »
UP for this post, same problem here. If UIPopUpList has just 1 item in its list, he doesn't show it. Also it's not selected when the main button "popup menu" is clicked. So if you have just 1 item it can be clicked in any way. =(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: BUG: UIPopupList doesn't show lists with one item
« Reply #2 on: December 09, 2012, 11:24:27 AM »
Line 443 of UIPopupList.cs -- change "> 1" check to be "> 0".

Fbary

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: BUG: UIPopupList doesn't show lists with one item
« Reply #3 on: December 09, 2012, 11:39:55 AM »
Great! (as ever) =P