From 3c2b80e7ac6c4e1292b310546c78c8de02ddfc4b Mon Sep 17 00:00:00 2001 From: Sattva <74269253+Sattva-108@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:22:24 +0300 Subject: [PATCH] fix for WoW Sirus errors not yet full, some options dont work yet on WoW Sirus, like Copy Chat window and Flight times as well. --- Leatrix_Plus.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 06bf5d6..4e87d73 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -17225,7 +17225,9 @@ function LeaPlusLC:CreateButton(name, frame, label, anchor, x, y, width, height, -- Set skinned button textures if not naked then mbtn:SetNormalTexture("Interface\\AddOns\\Leatrix_Plus\\LeatrixPlus.blp") - mbtn:GetNormalTexture():SetTexCoord(0.125, 0.25, 0.4375, 0.5) + if mbtn:GetNormalTexture() then + mbtn:GetNormalTexture():SetTexCoord(0.125, 0.25, 0.4375, 0.5) + end end mbtn:SetHighlightTexture("Interface\\AddOns\\Leatrix_Plus\\LeatrixPlus.blp") mbtn:GetHighlightTexture():SetTexCoord(0, 0.125, 0.4375, 0.5) @@ -17241,7 +17243,9 @@ function LeaPlusLC:CreateButton(name, frame, label, anchor, x, y, width, height, --===== 3.3.5 texture disables =====-- -- mbtn:GetNormalTexture():SetTexture(nil) - mbtn:GetPushedTexture():SetTexture(nil) + if mbtn:GetPushedTexture() then + mbtn:GetPushedTexture():SetTexture(nil) + end -- mbtn:GetDisabledTexture():SetTexture(nil) -- mbtn:GetHighlightTexture():SetTexture(nil)