This commit is contained in:
Bunny67
2020-08-22 22:59:31 +03:00
parent 72eed41cf0
commit e9957582cb
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -4751,7 +4751,7 @@ WeakAuras.event_prototypes = {
local remainingCheck = %s local remainingCheck = %s
local inverseTrigger = %s local inverseTrigger = %s
local show, expirationTime, castType, spell, icon, startTime, endTime, interruptible, remaining local show, expirationTime, castType, spell, icon, startTime, endTime, interruptible, remaining, _
spell, _, _, icon, startTime, endTime, _, _, interruptible = UnitCastingInfo(unit) spell, _, _, icon, startTime, endTime, _, _, interruptible = UnitCastingInfo(unit)
if spell then if spell then
+1 -1
View File
@@ -391,7 +391,7 @@ local function modify(parent, region, data)
or data.displayIcon or data.displayIcon
or "Interface\\Icons\\INV_Misc_QuestionMark" or "Interface\\Icons\\INV_Misc_QuestionMark"
); );
icon:SetTexture(iconPath); icon:SetTexture(iconPath)
icon:SetDesaturated(data.desaturate); icon:SetDesaturated(data.desaturate);
end end
+2 -4
View File
@@ -231,10 +231,8 @@ local function modifyThumbnail(parent, frame, data)
frame:SetParent(parent) frame:SetParent(parent)
function frame:SetIcon(path) function frame:SetIcon(path)
local success = self.icon:SetTexture(data.auto and path or data.displayIcon) and (data.auto and path or data.displayIcon); local iconPath = data.auto and path or data.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
if not(success) then self.icon:SetTexture(iconPath)
self.icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark");
end
end end
if data then if data then