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 @@ -