Welcome,
Guest
. Please
login
or
register
.
April 29, 2026, 03:30:19 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPopuplist current selection presented as a digit?
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIPopuplist current selection presented as a digit? (Read 3402 times)
Vuoripeikko
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 2
UIPopuplist current selection presented as a digit?
«
on:
July 10, 2014, 07:28:56 AM »
Heyup, first of all, NGUI is an awesome asset and I've been using it for a project for some time now. I do have a problem now that I thought of asking here - is there a way of getting the number of your current choice from UIPopuplist? I know you can get the value as a string, but as an int?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIPopuplist current selection presented as a digit?
«
Reply #1 on:
July 10, 2014, 09:11:57 PM »
Popup list always has a list of strings that it's working with. Assuming you need an index, UIPopupList.items.IndexOf("some value") will tell you the index.
Logged
Vuoripeikko
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 2
Re: UIPopuplist current selection presented as a digit?
«
Reply #2 on:
July 14, 2014, 01:38:35 AM »
Thank you, it works like a charm.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIPopuplist current selection presented as a digit?