from retail
This commit is contained in:
@@ -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});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user