from retail

This commit is contained in:
NoM0Re
2025-02-18 17:13:03 +01:00
parent 03e9b0f102
commit 6714432be6
8 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -1020,7 +1020,7 @@ local funcs = {
end
iconPath = iconPath or self.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
self.icon:SetTexture(iconPath)
Private.SetTextureOrSpellTexture(self.icon, iconPath)
end,
SetOverlayColor = function(self, id, r, g, b, a)
self.bar:SetAdditionalBarColor(id, { r, g, b, a});
+1 -1
View File
@@ -557,7 +557,7 @@ local function modify(parent, region, data)
end
iconPath = iconPath or self.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
icon:SetTexture(iconPath)
Private.SetTextureOrSpellTexture(icon, iconPath)
end
function region:Scale(scalex, scaley)
@@ -1151,6 +1151,15 @@ function Private.regionPrototype.AddExpandFunction(data, region, cloneId, parent
end
end
function Private.SetTextureOrSpellTexture(texture, path)
local spellID = tonumber(path)
if spellID then
return texture:SetTexture(select(3, GetSpellInfo(spellID)) or spellID)
else
return texture:SetTexture(path)
end
end
do
local function move_condition_subregions(data, offset, afterPos)
if data.conditions then