Verified Commit 9655209a authored by Merathilis's avatar Merathilis
Browse files

Baaad Mera

parent c5ea2ac4
......@@ -8,11 +8,9 @@ local pairs, ipairs, type = pairs, ipairs, type
local EquipmentManager_GetItemInfoByLocation = EquipmentManager_GetItemInfoByLocation
local FauxScrollFrame_GetOffset = FauxScrollFrame_GetOffset
local GetFactionInfo = GetFactionInfo
local GetInventoryItemLink = GetInventoryItemLink
local GetNumFactions = GetNumFactions
local hooksecurefunc = hooksecurefunc
local IsAddOnLoaded = IsAddOnLoaded
local IsCosmeticItem = IsCosmeticItem
local ITEM_QUALITY_COLORS = ITEM_QUALITY_COLORS
local FLYOUT_LOCATIONS = {
......@@ -38,11 +36,6 @@ local function UpdateAzeriteEmpoweredItem(self)
self.AzeriteTexture:SetDrawLayer('BORDER', 1)
end
local function UpdateCosmetic(self)
local itemLink = GetInventoryItemLink("player", self:GetID())
self.IconOverlay:SetShown(itemLink and IsCosmeticItem(itemLink))
end
local function ColorizeStatPane(frame)
if frame.leftGrad then return end
......@@ -295,8 +288,6 @@ function S:CharacterFrame()
Slot:StyleButton(Slot)
Slot.icon:SetInside()
Slot.ignoreTexture:SetTexture([[Interface\PaperDollInfoFrame\UI-GearManager-LeaveItem-Transparent]])
Slot.IconOverlay:SetAtlas('CosmeticIconFrame')
Slot.IconOverlay:SetInside()
S:HandleIconBorder(Slot.IconBorder)
......@@ -317,8 +308,6 @@ function S:CharacterFrame()
highlight:SetTexture(E.Media.Textures.White8x8)
highlight:SetVertexColor(1, 1, 1, .25)
highlight:SetInside()
UpdateCosmetic(slot)
end)
--Give character frame model backdrop it's color back
......
......@@ -3,15 +3,6 @@ local S = E:GetModule('Skins')
local _G = _G
local pairs = pairs
local GetInventoryItemLink = GetInventoryItemLink
local IsCosmeticItem = IsCosmeticItem
local hooksecurefunc = hooksecurefunc
local function UpdateCosmetic(self)
local unit = _G.InspectFrame.unit
local itemLink = unit and GetInventoryItemLink(unit, self:GetID())
self.IconOverlay:SetShown(itemLink and IsCosmeticItem(itemLink))
end
function S:Blizzard_InspectUI()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.inspect) then return end
......@@ -101,18 +92,11 @@ function S:Blizzard_InspectUI()
Slot.icon:SetInside()
Slot:StripTextures()
Slot:StyleButton()
Slot.IconOverlay:SetAtlas('CosmeticIconFrame')
Slot.IconOverlay:SetInside()
S:HandleIconBorder(Slot.IconBorder, Slot.icon.backdrop)
end
end
hooksecurefunc('InspectPaperDollItemSlotButton_Update', function(button)
button.icon:SetShown(button.hasItem)
UpdateCosmetic(button)
end)
InspectPVPFrame.BG:Kill()
_G.InspectGuildFrameBG:Kill()
_G.InspectTalentFrame:StripTextures()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment