Custom tags using UI escape sequences
thetobber opened this issue ยท 1 comments
I wanted raid target markers to be shown on my frames, so I created a custom tag that uses a UI escape sequence to return a target marker for the unit.
function(u)
local i = GetRaidTargetIndex(u)
if i == nil then return "" end
local t = format([[Interface\TARGETINGFRAME\UI-RaidTargetingIcon_%s]], i)
return CreateTextureMarkup(t, 64, 64, 14, 14, 0, 1, 0, 1, 0, 0)
end
The problem that I encountered was that it renders with an odd outline, due to the custom implementation for font strings that GladiusEx uses, namely GladiusEx:CreateSuperFS
.
I tried to remove the line GladiusEx\modules\tags.lua:319
and use the regular font string on GladiusEx\modules\tags.lua:318
, which makes it render correctly.
Here's how it looks using GladiusEx:CreateSuperFS
:
And here's with a regular font string:
Thanks ๐