How to spell out the result of plural UI escape sequences?
Hi, how can I get the interpreted version of a string including plural UI escape sequences?
Lua Code:
|
I believe that's in the C-code renderer for FontStrings, not anything we have access to.
|
I found a way. :)
Lua Code:
|
Doesn't it just spit back the UI escape code? You can expose it by doing something like :gsub("|","||"). What this does is escape the identifier so FontStrings will show the raw code.
|
Hm, it definitely works for the plural escape sequences. E.g. turning "2 |4car:cars;" into "2 cars".
|
Unexpected behavior, but my own tests are confirming it as well. I simplified it down to running through a FontString, which would be where the processing happens, stripping the overhead of the Tooltip code.
Lua Code:
|
Nice, this is even better! Thank you! :)
|
All times are GMT -6. The time now is 04:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI