From b995b88a4ad6fa9d439a0b6b0dd248f0447e5625 Mon Sep 17 00:00:00 2001 From: StormFX Date: Tue, 7 May 2024 12:24:21 -0500 Subject: [PATCH] - Limit CircularMask reset to Item buttons. (Closes #359) --- Core/Regions/Mask.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Core/Regions/Mask.lua b/Core/Regions/Mask.lua index 46fee14..8ca7820 100644 --- a/Core/Regions/Mask.lua +++ b/Core/Regions/Mask.lua @@ -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