Welcome,
Guest
. Please
login
or
register
.
February 12, 2025, 04:57:41 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPopupList always auto select first item (follow-up question) [SOLVED]
« previous
next »
Print
Pages: [
1
]
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
UIPopupList always auto select first item (follow-up question) [SOLVED]
«
on:
August 13, 2013, 04:00:12 AM »
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:
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
»
Logged
vexe
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 153
Re: UIPopupList always auto select first item (follow-up question)
«
Reply #1 on:
August 13, 2013, 09:51:03 AM »
Hello?? anybody home??
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
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.
Logged
vexe
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 153
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.
Logged
vexe
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 153
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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPopupList always auto select first item (follow-up question) [SOLVED]