From 2448697f63d601f42b8c3c8726fd128a95822106 Mon Sep 17 00:00:00 2001 From: frozn45 Date: Sun, 4 Aug 2024 17:55:55 +0200 Subject: [PATCH] - fixes for TWW 11.0.0 --- Poncho-2.0.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Poncho-2.0.lua b/Poncho-2.0.lua index e05bdcb..031d276 100644 --- a/Poncho-2.0.lua +++ b/Poncho-2.0.lua @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with Poncho. If not, see . --]] -local Lib = LibStub:NewLibrary('Poncho-2.0', 3) +local Lib = LibStub:NewLibrary('Poncho-2.0', 4) if not Lib then return end local setmetatable, getmetatable, tinsert, tremove, type = setmetatable, getmetatable, tinsert, tremove, type @@ -179,9 +179,9 @@ Lib.__call = Lib.NewClass Lib.Base, Lib.ClassMeta, Lib.SuperCall = Base, ClassMeta, SuperCall Lib.Types = Lib.Types or { Abstract = {}, - Frame = getmetatable(GameMenuFrame).__index, - Button = getmetatable(GameMenuButtonContinue).__index, + Frame = (GameMenuFrame and getmetatable(GameMenuFrame) or GetFrameMetatable()).__index, + Button = (GameMenuButtonContinue and getmetatable(GameMenuButtonContinue) or GetButtonMetatable()).__index, CheckButton = getmetatable(AddonListForceLoad).__index, - EditBox = getmetatable(ChatFrame1EditBox).__index, + EditBox = (ChatFrame1EditBox and getmetatable(ChatFrame1EditBox) or GetEditBoxMetatable()).__index, GameTooltip = getmetatable(GameTooltip).__index, }