From e4b56d20a98ec3993bb76c01f1bacc031cebf74a Mon Sep 17 00:00:00 2001 From: McPewPew <98543024+McPewPew@users.noreply.github.com> Date: Mon, 21 Feb 2022 20:12:22 +0000 Subject: [PATCH] TurtleSnacks --- MBB/MBB.lua => MBB.lua | 41 ++++++++++++++++++ MBB/MBB.toc => MBB.toc | 4 +- MBB/MBB.xml => MBB.xml | 2 +- MBB/icon.tga => icon.tga | Bin ...lization-deDE.lua => localization-deDE.lua | 0 ...lization-enGB.lua => localization-enGB.lua | 0 ...lization-ruRU.lua => localization-ruRU.lua | 0 7 files changed, 45 insertions(+), 2 deletions(-) rename MBB/MBB.lua => MBB.lua (94%) rename MBB/MBB.toc => MBB.toc (78%) rename MBB/MBB.xml => MBB.xml (99%) rename MBB/icon.tga => icon.tga (100%) rename MBB/localization-deDE.lua => localization-deDE.lua (100%) rename MBB/localization-enGB.lua => localization-enGB.lua (100%) rename MBB/localization-ruRU.lua => localization-ruRU.lua (100%) diff --git a/MBB/MBB.lua b/MBB.lua similarity index 94% rename from MBB/MBB.lua rename to MBB.lua index 019b330..662a3db 100644 --- a/MBB/MBB.lua +++ b/MBB.lua @@ -23,6 +23,38 @@ MBB_Include = { [1] = "DPSMate_MiniMap", }; +--McPewPew +TW_Include = { +}; + +isTWoW = 0 + +if (TWMinimapShopFrame~=nil) then + TWMinimapShopFrame:ClearAllPoints() TWMinimapShopFrame:SetParent(Minimap) TWMinimapShopFrame:SetPoint("LEFT",Minimap,"RIGHT",-1, -1) + isTWoW = 1 + table.insert(TW_Include, "Turtle WoW Shop"); +end +if (TWMiniMapBattlefieldFrame~=nil) then + TWMiniMapBattlefieldFrame:ClearAllPoints() TWMiniMapBattlefieldFrame:SetParent(Minimap) TWMiniMapBattlefieldFrame:SetPoint("LEFT",Minimap,"RIGHT",-1, -1) + isTWoW = 1 + table.insert(TW_Include, "Turtle WoW Battleground Finder"); +end +if (LFT_Minimap~=nil) then + LFT_Minimap:ClearAllPoints() LFT_Minimap:SetParent(Minimap) LFT_Minimap:SetPoint("LEFT",Minimap,"RIGHT",-1, -1) + isTWoW = 1 + table.insert(TW_Include, "LookingForTurtles"); +end + +if isTWoW == 1 then + for i,TWMMB in ipairs(TW_Include) do + DEFAULT_CHAT_FRAME:AddMessage("scruunch scruunch "..TWMMB, 1, 0, 1) + end + DEFAULT_CHAT_FRAME:AddMessage("Don't worry TurtleSnacks has fed your turtles", 1, 0, 1); +else + DEFAULT_CHAT_FRAME:AddMessage("Many sad Turtle noises :(", 1, 0, 1); +end +--McPewPew + MBB_Ignore = { [1] = "MiniMapTrackingFrame", [2] = "MiniMapMeetingStoneFrame", @@ -236,6 +268,15 @@ function MBB_GatherIcons() ignore = true; end end +--McPewPew + if isTWoW == 1 then + for i,needle in ipairs(MBB_Ignore) do + if( string.find(child:GetName(), "TWMiniMapBattlefieldFrame") ) then + ignore = false; + end + end + end +--McPewPew if( not ignore ) then if( not child:HasScript("OnClick") ) then for _,subchild in ipairs({child:GetChildren()}) do diff --git a/MBB/MBB.toc b/MBB.toc similarity index 78% rename from MBB/MBB.toc rename to MBB.toc index e3c6635..9722b26 100644 --- a/MBB/MBB.toc +++ b/MBB.toc @@ -1,7 +1,9 @@ ## Interface: 11200 ## Title: MinimapButtonBag ## Version: 0.508 -## Author: Tunhadil, LaYt - continue +## Author: Tunhadil, LaYt (+McPewPew) +## X-Website: https://github.com/McPewPew/MinimapButtonBag-TurtleWoW +## X-Date 2021-02-21 ## Notes: Reduces minimap buttons and makes them accessible through a menu! ## Notes-deDE: Reduziert die Minimap Knöpfe und erlaubt den Zugriff auf diese über ein Menü! ## Notes-ruRU: Компанует все иконки на миникарте в одну. diff --git a/MBB/MBB.xml b/MBB.xml similarity index 99% rename from MBB/MBB.xml rename to MBB.xml index 76b6cac..a034334 100644 --- a/MBB/MBB.xml +++ b/MBB.xml @@ -12,7 +12,7 @@ -