Formating & Colouring Titles
Hi all,
So, I have problems with pronouns not in the same colour I set the text, that's probably because if you set the color inside zo_strformat the pronoun is added after the colour is set to the original text. I have this problem when I use: Lua Code:
I can solve it by using : Lua Code:
... But is there a cleaner way to do this ? EDIT: I thought this would work but ^f ^F... are not formatted so here's no pronoun anymore... Lua Code:
Wiki page on zo_strformat for reference for addon authors with a similar problem : https://wiki.esoui.com/How_to_format...h_zo_strformat |
Why not simply using self.mapTitle:SetText("|cffffff".. zo_strformat(SI_UNIT_NAME, mapTitleName) .."|r") so that the map title will be formatted and get's the ^f etc. removed, and the color will be around "all text" then.
SI_UNIT_NAME is just an example, it relates to <<1>> in en and <<C:1>> for capital first char in de e.g. |
All times are GMT -6. The time now is 05:11 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI