Added a Monochrome outline tag

FontString outline is now only changed if something changed (performance increase)
This commit is contained in:
cybeloras
2012-04-02 23:07:16 +00:00
parent 4ab7ef150e
commit bb9f81addd
2 changed files with 14 additions and 2 deletions

View File

@ -300,8 +300,10 @@ local function updateFontString(fs)
if opacity then
fs:SetAlpha(opacity)
end
local a, b = fs:GetFont()
fs:SetFont(a, b, outline or '')
local a, b, c = fs:GetFont()
if c ~= (outline or '') then
fs:SetFont(a, b, outline or '')
end
end
end
end