Masque

Masque

7M Downloads

Bug: Mask Issue on Non-Item Buttons

sfmict opened this issue ยท 8 comments

commented

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

commented

A couple of questions:

  1. Which add-on is this affecting?
  2. Why are minimap buttons being passed to Masque?
commented

1.Rematch
2.My addon uses the masque for skins (HidingBar)
3.I fexed it for my addon, but it's a potential bug

commented

So your add-on uses Masque for Minimap icons or?

commented

My addon grabs the minimap buttons and yes uses the masque for them.

commented

Ok. I'll look into putting something in there to specifically target the bag slots.

commented

Ahaha, ok) gl)

commented
if CircleMask then
	local Icon = Button.icon

	if Icon then
		Icon:RemoveMaskTexture(CircleMask)
                CircleMask:SetTexture()
	end
end

mb so

commented

Like I said, I'll look into it. It may be a bit, though.