from retail

This commit is contained in:
NoM0Re
2025-01-09 17:17:53 +01:00
parent 55709443ae
commit aee89075c9
8 changed files with 67 additions and 45 deletions
-18
View File
@@ -132,24 +132,6 @@ local function modify(parent, region, parentData, data, first)
region:SetParent(parent)
local text = region.text;
-- Legacy members in icon
-- Can we remove them with 9.0 ?
if parentData.regionType == "icon" then
if not parent.stacks then
parent.stacks = text
elseif not parent.text2 then
parent.text2 = text
end
elseif parentData.regionType == "aurabar" then
if not parent.timer then
parent.timer = text
elseif not parent.text then
parent.text = text
elseif not parent.stacks then
parent.stacks = text
end
end
local fontPath = SharedMedia:Fetch("font", data.text_font);
text:SetFont(fontPath, data.text_fontSize < 33 and data.text_fontSize or 33, data.text_fontType);
if not text:GetFont() then -- Font invalid, set the font but keep the setting