from retail

This commit is contained in:
Bunny67
2021-03-07 19:42:16 +03:00
parent b3be159906
commit 6e530142d3
41 changed files with 2796 additions and 2128 deletions
+7 -6
View File
@@ -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
+4 -3
View File
@@ -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"]);