beta
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user