from retail
This commit is contained in:
@@ -572,15 +572,15 @@ local function modifyThumbnail(parent, borderframe, data, fullModify, width, hei
|
||||
function borderframe:SetIcon(path)
|
||||
local iconPath
|
||||
if data.iconSource == 0 then
|
||||
iconPath = data.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
||||
iconPath = data.displayIcon
|
||||
else
|
||||
iconPath = path or data.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
||||
iconPath = path or data.displayIcon
|
||||
end
|
||||
local success = icon:SetTexture(data.auto and path or data.displayIcon) and (data.auto and path or data.displayIcon);
|
||||
icon:SetTexture(iconPath)
|
||||
|
||||
icon:SetTexture(iconPath and iconPath ~= "" and iconPath or "Interface\\Icons\\INV_Misc_QuestionMark")
|
||||
end
|
||||
|
||||
if data and data.iconSource ~= 0 then
|
||||
if data then
|
||||
local name, icon = WeakAuras.GetNameAndIcon(data)
|
||||
borderframe:SetIcon(icon)
|
||||
end
|
||||
@@ -600,7 +600,8 @@ local function createIcon()
|
||||
texture = "Runes",
|
||||
orientation = "HORIZONTAL",
|
||||
alpha = 1.0,
|
||||
barColor = {1, 0, 0, 1}
|
||||
barColor = {1, 0, 0, 1},
|
||||
triggers = {}
|
||||
};
|
||||
|
||||
-- Create and configure thumbnail
|
||||
|
||||
@@ -245,11 +245,12 @@ local function modifyThumbnail(parent, frame, data)
|
||||
function frame:SetIcon(path)
|
||||
local iconPath
|
||||
if data.iconSource == 0 then
|
||||
iconPath = data.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
||||
iconPath = data.displayIcon
|
||||
else
|
||||
iconPath = path or data.displayIcon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
||||
iconPath = path or data.displayIcon
|
||||
end
|
||||
self.icon:SetTexture(iconPath)
|
||||
|
||||
self.icon:SetTexture(iconPath and iconPath ~= "" and iconPath or "Interface\\Icons\\INV_Misc_QuestionMark")
|
||||
end
|
||||
|
||||
if data then
|
||||
|
||||
@@ -454,4 +454,4 @@ local function createIcon()
|
||||
return thumbnail;
|
||||
end
|
||||
|
||||
WeakAuras.RegisterRegionOptions("stopmotion", createOptions, createIcon, L["Stop Motion"], createThumbnail, modifyThumbnail, L["Shows a stop motion textures"]);
|
||||
WeakAuras.RegisterRegionOptions("stopmotion", createOptions, createIcon, L["Stop Motion"], createThumbnail, modifyThumbnail, L["Shows a stop motion texture"]);
|
||||
|
||||
Reference in New Issue
Block a user