This commit is contained in:
Pinya
2018-07-24 18:47:23 +03:00
parent 11ea55b1a5
commit 19ad72bfbf
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ function AB:BindUpdate(button, spellmacro)
GameTooltip:AddLine(bind.button.name, 1, 1, 1) GameTooltip:AddLine(bind.button.name, 1, 1, 1)
bind.button.bindings = {GetBindingKey(spellmacro.." "..bind.button.name)} bind.button.bindings = {GetBindingKey(spellmacro.." "..bind.button.name)}
if getn(bind.button.bindings == 0) then if getn(bind.button.bindings) == 0 then
GameTooltip:AddLine(L["No bindings set."], .6, .6, .6) GameTooltip:AddLine(L["No bindings set."], .6, .6, .6)
else else
GameTooltip:AddDoubleLine(L["Binding"], L["Key"], .6, .6, .6, .6, .6, .6) GameTooltip:AddDoubleLine(L["Binding"], L["Key"], .6, .6, .6, .6, .6, .6)
@@ -226,7 +226,7 @@ function AB:RegisterMacro(addon)
if addon == "Blizzard_MacroUI" then if addon == "Blizzard_MacroUI" then
for i = 1, MAX_MACROS do for i = 1, MAX_MACROS do
local b = _G["MacroButton"..i] local b = _G["MacroButton"..i]
HookScript(b, "OnEnter", function() AB:BindUpdate(this, "MACRO") end) HookScript(b, "OnEnter", function() self:BindUpdate(b, "MACRO") end)
end end
end end
end end
+5 -5
View File
@@ -94,14 +94,14 @@ local function LoadRollSkin()
if E.private.general.lootRoll then return end if E.private.general.lootRoll then return end
if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.lootRoll then return end if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.lootRoll then return end
local function OnShow(self) local function OnShow()
E:SetTemplate(self, "Transparent") E:SetTemplate(this, "Transparent")
local cornerTexture = _G[self:GetName().."Corner"] local cornerTexture = _G[this:GetName().."Corner"]
cornerTexture:SetTexture() cornerTexture:SetTexture()
local iconFrame = _G[self:GetName().."IconFrame"] local iconFrame = _G[this:GetName().."IconFrame"]
local _, _, _, quality = GetLootRollItemInfo(self.rollID) local _, _, _, quality = GetLootRollItemInfo(this.rollID)
iconFrame:SetBackdropBorderColor(GetItemQualityColor(quality)) iconFrame:SetBackdropBorderColor(GetItemQualityColor(quality))
end end