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:
self.mapTitle:SetText(zo_strformat("|cffffff<<1>>|r",mapTitleName))
I can solve it by using :
Lua Code:
self.mapTitle:SetText( string.format("|cffffff"..zo_strformat(mapTitleName).."|r"))
... 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:
self.mapTitle:SetText(zo_strformat("|cffffff"..mapTitleName.."|r"))
Wiki page on zo_strformat for reference for addon authors with a similar problem :
https://wiki.esoui.com/How_to_format...h_zo_strformat