Bug: Mask Issue on Non-Item Buttons
sfmict opened this issue ยท 8 comments
Game Flavor
Retail, Classic Era, Classic Wrath
Game Version
10.2.6
Add-On Version
10.2.6
Description
Hi, very cool addon, but...
-- Disable the bag slot mask in 10.0 to enable custom masks.
if CircleMask then
local Icon = Button.icon
if Icon then
Icon:RemoveMaskTexture(CircleMask)
end
CircleMask:SetTexture()
end
This code (CircleMask:SetTexture()
) disables the icon if not Button.icon
for some minimap button addons in my addon
Mb you should use GetNumMaskTextures
and GetMaskTexture
to disable masks
A couple of questions:
- Which add-on is this affecting?
- Why are minimap buttons being passed to Masque?
1.Rematch
2.My addon uses the masque for skins (HidingBar)
3.I fexed it for my addon, but it's a potential bug
Ok. I'll look into putting something in there to specifically target the bag slots.
if CircleMask then
local Icon = Button.icon
if Icon then
Icon:RemoveMaskTexture(CircleMask)
CircleMask:SetTexture()
end
end
mb so