Author Topic: Request - Add alpha to text encoding  (Read 6426 times)

Jaimi

  • Guest
Request - Add alpha to text encoding
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Request - Add alpha to text encoding
« Reply #1 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[-].

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Request - Add alpha to text encoding
« Reply #2 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.

Jaimi

  • Guest
Re: Request - Add alpha to text encoding
« Reply #3 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.

Jaimi

  • Guest
Re: Request - Add alpha to text encoding
« Reply #4 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.