Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Jaimi on April 26, 2012, 10:21:20 PM

Title: Request - Add alpha to text encoding
Post by: Jaimi on April 26, 2012, 10:21:20 PM
[AARRGGBB]  Opens up a ton of possiblities for hiding data in labels, for sorting, getting ID values out, etc.
Title: Re: Request - Add alpha to text encoding
Post by: ArenMook on April 26, 2012, 11:06:33 PM
Hiding data in labels... as in if alpha is 0 don't show it? If you want to embed data in labels then it might make sense to add something else, something binary instead... like
  1. [0]some data[-].
Title: Re: Request - Add alpha to text encoding
Post by: Nicki on April 27, 2012, 02:18:30 AM
That's sorta funky. Why not just have a script next to it with the data, and change the label if you want to "reveal" data to the user? Embedding the data directly in the text strings seems ripe for bugs in my opinion.
Title: Re: Request - Add alpha to text encoding
Post by: Jaimi on April 27, 2012, 09:56:31 AM
It does seem funky, sure - but I'm looking at things like popup lists that make it a bit harder to associate objects/indexes with the items selected. With invisible data encoded into the string, I could make it sort how I wanted, stick indexes inside it, etc.
Title: Re: Request - Add alpha to text encoding
Post by: Jaimi on April 27, 2012, 09:57:24 AM
Hiding data in labels... as in if alpha is 0 don't show it? If you want to embed data in labels then it might make sense to add something else, something binary instead... like
  1. [0]some data[-].

Yeah, that would work great.