Originally Posted by Qupe
Off the bat here are download links:
http://www.wowinterface.com/download...-cargBags.html
http://www.wowinterface.com/download...implicity.html
(my edit)
http://www.wowinterface.com/download...28-QuseUI.html
What I'm trying to do is remove the ability of CargBags to highlight based on item quality.
What I've tried so far (because I'm assuming this is where it's happening) is go into CargBags>mixins-add>default.scaffold and edit the texture, blend and opacity. I've tried removing those lines from the addon etc... from anything I do straight up disables highlighting (via any other addon) completely.
What I'd like to do is completely remove anything related to highlighting from CargBags completely which would let anything else - like oGlow - handle the highlighting.
To clarify any questions:
I'm doing this so I can use an addon like oGlow and style it's highlight (so it applies to the character frame and bag - and matches). I haven't been able to figure out how to style CargBag's highlight. I;ve tried other addons that are mods of CargBags (ie -lumBags, m_bags, etc...) and still cannot get them to work.
Basically, TL;DR, I want to remove the ability of CargBags to highlight item quality and let another addon take over that ability. Please let me know if I've excluded any information.
|
Try this script i am using.
you will have to add your own border n stuff.
LUA Code:
local _G = _G -- import globals for faster usage
local function UpdateGlow(button, id)
local quality, texture, _
if(id) then
quality, _, _, _, _, _, _, texture = select(3, GetItemInfo(id))
end
local glow = button.glow
if(not glow) then
glow = CreateFrame("Frame", nil, button)
CreateBorderLight(glow, AftermathhUI.media.bordersize-1, AftermathhUI.bordercolor, AftermathhUI.bordercolor, AftermathhUI.bordercolor, 1)
SetTexture(glow, AftermathhUI.media.bordernormal)
glow:SetPoint("TOPLEFT", button, "TOPLEFT")
glow:SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT")
button.glow = glow
end
if(texture) then
local r, g, b = GetItemQualityColor(quality)
if _G[button:GetName().."IconQuestTexture"] and _G[button:GetName().."IconQuestTexture"]:IsShown() then
r, g, b = unpack(AftermathhUI.loot.questitemcolor)
end
ColorBorder(glow, r, g, b)
glow:Show()
else
glow:Hide()
end
end
hooksecurefunc("BankFrameItemButton_Update", function(self)
UpdateGlow(self, GetInventoryItemID("player", self:GetInventorySlot()))
end)
hooksecurefunc("ContainerFrame_Update", function(self)
for i = 1, self.size do
UpdateGlow(_G[self:GetName().."Item"..i], GetContainerItemID(self:GetID(), _G[self:GetName().."Item"..i]:GetID()))
end
end)