Skip to content

Commit

Permalink
- Limit CircularMask reset to Item buttons. (Closes #359)
Browse files Browse the repository at this point in the history
  • Loading branch information
StormFX committed May 7, 2024
1 parent 309153f commit b995b88
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Core/Regions/Mask.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,23 @@ local type = type
-- @ Core\Utility
local GetSize, SetPoints = Core.GetSize, Core.SetPoints

-- @ Skins\Regions
local ItemTypes = Core.ItemTypes

----------------------------------------
-- Core
---

-- Skins a button or region mask.
function Core.SkinMask(Region, Button, Skin, xScale, yScale)
local bType = Button.__MSQ_bType
local BagType = bType and ItemTypes[bType]

local ButtonMask = Button.__MSQ_Mask or Button.IconMask
local CircleMask = Button.CircleMask

-- Disable the bag slot mask in 10.0 to enable custom masks.
if CircleMask then
if BagType and CircleMask then
local Icon = Button.icon

if Icon then
Expand Down

0 comments on commit b995b88

Please sign in to comment.