From dd7667f7e39c6ae4d85edcbf311e48967c95c23d Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 8 Nov 2018 00:19:00 +0300 Subject: [PATCH] actionbar: skin additional textures --- modules/actionbar.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 04541ccc..e43bc190 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -526,6 +526,16 @@ pfUI:RegisterModule("actionbar", function () icon:SetAllPoints(button) icon:SetTexCoord(.08, .92, .08, .92) + local pushed = button:GetPushedTexture() + pushed:SetAllPoints(button) + pushed:SetTexCoord(.08,.92,.08,.92) + button.SetPushedTexture = function() return end + + local checked = button:GetCheckedTexture() + checked:SetAllPoints(button) + checked:SetTexCoord(.08,.92,.08,.92) + button.SetCheckedTexture = function() return end + local texture = _G["ShapeshiftButton"..i..'NormalTexture'] texture:SetAlpha(0) @@ -554,6 +564,16 @@ pfUI:RegisterModule("actionbar", function () icon:SetParent(button) icon:SetTexCoord(.08, .92, .08, .92) + local pushed = button:GetPushedTexture() + pushed:SetAllPoints(button) + pushed:SetTexCoord(.08,.92,.08,.92) + button.SetPushedTexture = function() return end + + local checked = button:GetCheckedTexture() + checked:SetAllPoints(button) + checked:SetTexCoord(.08,.92,.08,.92) + button.SetCheckedTexture = function() return end + local texture = _G["PetActionButton"..i..'NormalTexture2'] texture:SetAlpha(0) @@ -598,6 +618,16 @@ pfUI:RegisterModule("actionbar", function () icon:SetAllPoints(button) icon:SetTexCoord(.08, .92, .08, .92) + local pushed = button:GetPushedTexture() + pushed:SetAllPoints(button) + pushed:SetTexCoord(.08,.92,.08,.92) + button.SetPushedTexture = function() return end + + local checked = button:GetCheckedTexture() + checked:SetAllPoints(button) + checked:SetTexCoord(.08,.92,.08,.92) + button.SetCheckedTexture = function() return end + local border = _G[actionbutton..i..'Border'] if C.bars.showequipped == "1" then border:SetAllPoints(button)