Skip to content
Permalink
Browse files

Added Azerite texture for Bags.

  • Loading branch information...
Wetxius committed Aug 24, 2018
1 parent f6dc334 commit 08b842c53838606fb9d7f8edd3033162990e27a8
Showing with 13 additions and 0 deletions.
  1. +13 −0 ShestakUI/Modules/Blizzard/Bags.lua
@@ -204,6 +204,8 @@ function Stuffing:SlotUpdate(b)
b.frame.text:SetText("")
end

b.frame.Azerite:Hide()

if b.frame.UpgradeIcon then
b.frame.UpgradeIcon:SetPoint("TOPLEFT", C.bag.button_size/2.7, -C.bag.button_size/2.7)
b.frame.UpgradeIcon:SetSize(C.bag.button_size/1.7, C.bag.button_size/1.7)
@@ -223,6 +225,10 @@ function Stuffing:SlotUpdate(b)
b.frame.text:SetText(b.itemlevel)
end

if b.frame.Azerite and C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItemByID(clink) then
b.frame.Azerite:Show()
end

if (IsItemUnusable(clink) or b.level and b.level > T.level) and not locked then
_G[b.frame:GetName().."IconTexture"]:SetVertexColor(1, 0.1, 0.1)
else
@@ -533,6 +539,13 @@ function Stuffing:SlotNew(bag, slot)
ret.frame.text:SetTextColor(1, 1, 0)
end

ret.frame.Azerite = ret.frame:CreateTexture(nil, "OVERLAY")
ret.frame.Azerite:SetAtlas("AzeriteIconFrame")
ret.frame.Azerite:SetTexCoord(0, 1, 0, 1)
ret.frame.Azerite:SetPoint("TOPLEFT", ret.frame, 1, -1)
ret.frame.Azerite:SetPoint("BOTTOMRIGHT", ret.frame, -1, 1)
ret.frame.Azerite:Hide()

local Battlepay = _G[ret.frame:GetName()].BattlepayItemTexture
if Battlepay then
Battlepay:SetAlpha(0)

0 comments on commit 08b842c

Please sign in to comment.
You can’t perform that action at this time.