Author Topic: UIPopupList always auto select first item (follow-up question) [SOLVED]  (Read 2595 times)

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
This is a follow-up question for: http://www.tasharen.com/forum/index.php?topic=3815.0 (only the first part)

After I added the line that ArenMook suggested:
  1. if (textLabel == null) mSelectedItem = null;
It worked well that it didn't auto select an item, but a new problem was introduced, I got what you see in the picture below, whenever I first click on a slot, I get this strange highlight...

What changes should I make in the UIPopupList in order to fix this? Thanks.

« Last Edit: August 14, 2013, 10:50:58 AM by vexe »

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: UIPopupList always auto select first item (follow-up question)
« Reply #1 on: August 13, 2013, 09:51:03 AM »
Hello?? anybody home??

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPopupList always auto select first item (follow-up question)
« Reply #2 on: August 13, 2013, 08:14:01 PM »
Why did you have to modify that? That post is from April, the change has long ago been added to NGUI. What version are you using?

Also, I sleep sometimes, so if I don't respond for a few hours, chances are I am asleep.

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: UIPopupList always auto select first item (follow-up question)
« Reply #3 on: August 14, 2013, 01:18:03 AM »
2.6.4 - The line wasn't there.

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: UIPopupList always auto select first item (follow-up question)
« Reply #4 on: August 14, 2013, 10:50:32 AM »
Thanks for your help anyway. I made my custom context menu, I had to make one anyways because I needed the 'menu appear where mouse click' functionality, UIPopupList just pops up under the button, making custom stuff gives more control.