Quantcast

Fixed options in enhanced shadows. This fixes #454

Darth Predator [03-31-17 - 20:07]
Fixed options in enhanced shadows. This fixes #454
Filename
ElvUI_SLE/modules/enhancedshdows.lua
diff --git a/ElvUI_SLE/modules/enhancedshdows.lua b/ElvUI_SLE/modules/enhancedshdows.lua
index f9d5328..e7bf04b 100644
--- a/ElvUI_SLE/modules/enhancedshdows.lua
+++ b/ElvUI_SLE/modules/enhancedshdows.lua
@@ -105,13 +105,34 @@ function ES:CreateShadows()
 		ES:RegisterShadow(frame.EnhShadow)
 		frame.EnhShadow:SetParent(frame.backdrop)
 	end
+	if E.private.sle.module.shadows.actionbars.stancebarbuttons then
+		for i = 1, 12 do
+			local frame = _G["ElvUI_StanceBarButton"..i]
+			if not frame then break end
+			frame:CreateShadow()
+			frame.EnhShadow = frame.shadow
+			frame.shadow = nil
+			ES:RegisterShadow(frame.EnhShadow)
+			frame.EnhShadow:SetParent(frame.backdrop)
+		end
+	end
 	if E.private.sle.module.shadows.actionbars.microbar then
 		local frame = _G["ElvUI_MicroBar"]
 		frame:CreateShadow()
 		frame.EnhShadow = frame.shadow
 		frame.shadow = nil
 		ES:RegisterShadow(frame.EnhShadow)
-		frame.EnhShadow:SetParent(frame.backdrop)
+	end
+	if E.private.sle.module.shadows.actionbars.microbarbuttons then
+		for i=1, (#MICRO_BUTTONS) do
+			local frame = _G[MICRO_BUTTONS[i]]
+			if not frame then break end
+			frame:CreateShadow()
+			frame.EnhShadow = frame.shadow
+			frame.shadow = nil
+			ES:RegisterShadow(frame.EnhShadow)
+			frame.EnhShadow:SetParent(frame.backdrop)
+		end
 	end
 	if E.private.sle.module.shadows.actionbars.petbar then
 		local frame = _G["ElvUI_BarPet"]
@@ -121,6 +142,17 @@ function ES:CreateShadows()
 		ES:RegisterShadow(frame.EnhShadow)
 		frame.EnhShadow:SetParent(frame.backdrop)
 	end
+	if E.private.sle.module.shadows.actionbars.petbarbuttons then
+		for i = 1, 12 do
+			local frame = _G["PetActionButton"..i]
+			if not frame then break end
+			frame:CreateShadow()
+			frame.EnhShadow = frame.shadow
+			frame.shadow = nil
+			ES:RegisterShadow(frame.EnhShadow)
+			frame.EnhShadow:SetParent(frame.backdrop)
+		end
+	end
 end

 function ES:UpdateShadow(shadow)