diff --git a/ShestakUI/Core/Disable.lua b/ShestakUI/Core/Disable.lua index 966dc60e6..163b7d0b1 100644 --- a/ShestakUI/Core/Disable.lua +++ b/ShestakUI/Core/Disable.lua @@ -86,7 +86,7 @@ if IsAddOnLoaded("DBM-SpellTimers") then C.raidcooldown.enable = false end -if IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") then +if IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") or IsAddOnLoaded("Baganator") then C.bag.enable = false end diff --git a/ShestakUI/Libs/oGlow/Pipes/Bags.lua b/ShestakUI/Libs/oGlow/Pipes/Bags.lua index 5c450eb58..5e2156e2c 100644 --- a/ShestakUI/Libs/oGlow/Pipes/Bags.lua +++ b/ShestakUI/Libs/oGlow/Pipes/Bags.lua @@ -5,12 +5,25 @@ local hook local _E local pipe = function(self) - for _, button in self:EnumerateValidItems() do - local bagID = button:GetBagID() - local slotID = button:GetID() - local slotLink = C_Container.GetContainerItemLink(bagID, slotID) + if oGlow:IsClassic() then + local id = self:GetID() + local name = self:GetName() + local size = self.size + + for i = 1, size do + local bid = size - i + 1 + local slotFrame = _G[name.."Item"..bid] + local slotLink = C_Container.GetContainerItemLink(id, i) + oGlow:CallFilters("bags", slotFrame, _E and slotLink) + end + else + for _, button in self:EnumerateValidItems() do + local bagID = button:GetBagID() + local slotID = button:GetID() + local slotLink = C_Container.GetContainerItemLink(bagID, slotID) - oGlow:CallFilters("bags", button, _E and slotLink) + oGlow:CallFilters("bags", button, _E and slotLink) + end end end @@ -28,11 +41,15 @@ local enable = function(self) _E = true if not hook then - for i = 1, NUM_CONTAINER_FRAMES do - local frame = _G["ContainerFrame"..i] - hooksecurefunc(frame, "UpdateItems", pipe) + if oGlow:IsClassic() then + hooksecurefunc("ContainerFrame_Update", pipe) + else + for i = 1, NUM_CONTAINER_FRAMES do + local frame = _G["ContainerFrame"..i] + hooksecurefunc(frame, "UpdateItems", pipe) + end + hooksecurefunc(ContainerFrameCombinedBags, "UpdateItems", pipe) end - hooksecurefunc(ContainerFrameCombinedBags, "UpdateItems", pipe) hook = true end diff --git a/ShestakUI/Modules/Blizzard/Bags.lua b/ShestakUI/Modules/Blizzard/Bags.lua index df0cc74f8..76cf6b7f4 100644 --- a/ShestakUI/Modules/Blizzard/Bags.lua +++ b/ShestakUI/Modules/Blizzard/Bags.lua @@ -114,7 +114,7 @@ Stuffing = CreateFrame("Frame", nil, UIParent) Stuffing:RegisterEvent("ADDON_LOADED") Stuffing:RegisterEvent("PLAYER_ENTERING_WORLD") Stuffing:SetScript("OnEvent", function(this, event, ...) - if IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") then return end + if IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") or IsAddOnLoaded("Baganator") then return end Stuffing[event](this, ...) end) diff --git a/ShestakUI/Modules/Skins/Blizzard/Container.lua b/ShestakUI/Modules/Skins/Blizzard/Container.lua index 528dd851c..29bbb6db8 100644 --- a/ShestakUI/Modules/Skins/Blizzard/Container.lua +++ b/ShestakUI/Modules/Skins/Blizzard/Container.lua @@ -5,7 +5,7 @@ if C.skins.blizzard_frames ~= true then return end -- Bank/Container skin ---------------------------------------------------------------------------------------- local function LoadSkin() - if C.bag.enable == true or (IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag")) then return end + if C.bag.enable == true or (IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") or IsAddOnLoaded("Baganator")) then return end -- Container Frame BagItemSearchBox:StripTextures(true) diff --git a/ShestakUI/Modules/Skins/Blizzard/Loot.lua b/ShestakUI/Modules/Skins/Blizzard/Loot.lua index 114ddba02..5d490f760 100644 --- a/ShestakUI/Modules/Skins/Blizzard/Loot.lua +++ b/ShestakUI/Modules/Skins/Blizzard/Loot.lua @@ -159,7 +159,7 @@ local function LoadSkin() end) -- Loot frame - if C.loot.lootframe == true or (IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag")) then return end + if C.loot.lootframe == true or (IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") or IsAddOnLoaded("Baganator")) then return end if T.Classic then LootFrame:StripTextures() diff --git a/ShestakUI/Modules/Skins/Blizzard_Vanilla/Container.lua b/ShestakUI/Modules/Skins/Blizzard_Vanilla/Container.lua index 8df20c1f4..1b2906d94 100644 --- a/ShestakUI/Modules/Skins/Blizzard_Vanilla/Container.lua +++ b/ShestakUI/Modules/Skins/Blizzard_Vanilla/Container.lua @@ -5,7 +5,7 @@ if C.skins.blizzard_frames ~= true then return end -- Bank/Container skin ---------------------------------------------------------------------------------------- local function LoadSkin() - if IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") then return end + if IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOnLoaded("BaudBag") or IsAddOnLoaded("Baganator") then return end -- Container Frame for i = 1, NUM_CONTAINER_FRAMES do