small revert

This commit is contained in:
Bunny67
2021-03-08 18:24:56 +03:00
parent d3effd7795
commit dfc65e8dad
+5 -1
View File
@@ -80,6 +80,11 @@ local function modify(parent, region, data)
if not text:GetFont() then -- Font invalid, set the font but keep the setting if not text:GetFont() then -- Font invalid, set the font but keep the setting
text:SetFont(STANDARD_TEXT_FONT, data.fontSize <= 33 and data.fontSize or 33, data.outline); text:SetFont(STANDARD_TEXT_FONT, data.fontSize <= 33 and data.fontSize or 33, data.outline);
end end
text:SetTextHeight(data.fontSize);
if text:GetFont() then
text:SetText("")
text:SetText(WeakAuras.ReplaceRaidMarkerSymbols(data.displayText));
end
text:SetJustifyH(data.justify); text:SetJustifyH(data.justify);
text:ClearAllPoints(); text:ClearAllPoints();
@@ -105,7 +110,6 @@ local function modify(parent, region, data)
region.tooltipFrame:EnableMouse(false); region.tooltipFrame:EnableMouse(false);
end end
text:SetTextHeight(data.fontSize);
text:SetShadowColor(unpack(data.shadowColor)) text:SetShadowColor(unpack(data.shadowColor))
text:SetShadowOffset(data.shadowXOffset, data.shadowYOffset) text:SetShadowOffset(data.shadowXOffset, data.shadowYOffset)