From 1d12533d8f4709292e32c66b4791ed617540fe8a Mon Sep 17 00:00:00 2001 From: LaYt Date: Mon, 3 Apr 2017 10:15:42 +0700 Subject: [PATCH] v0.508 + small fixes + fix nil error #9 --- MBB/MBB.lua | 12 ++++++++---- MBB/MBB.toc | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/MBB/MBB.lua b/MBB/MBB.lua index 780bf64..10b0a90 100644 --- a/MBB/MBB.lua +++ b/MBB/MBB.lua @@ -20,7 +20,7 @@ MBB_DefaultOptions = { }; MBB_Include = { - + [1] = "DPSMate_MiniMap", }; MBB_Ignore = { @@ -52,8 +52,6 @@ MBB_IgnoreSize = { [4] = "STC_SoulstoneButton", [5] = "STC_SpellstoneButton", [6] = "STC_FirestoneButton", --- [7] = "WIM_IconFrameButton", - [7] = "MonkeyBuddyIconButton" }; --Code by Grayhoof (SCT) @@ -80,7 +78,11 @@ MBB_ExtraSize = { WIM_IconFrameButton:SetScale(1); end, ["MonkeyBuddyIconButton"] = function() - --MonkeyBuddyIconButton:SetScale(0.75); + MonkeyBuddyIconButton:SetHeight(33); + MonkeyBuddyIconButton:SetWidth(33); + end, + ["DPSMate_MiniMap"] = function() + DPSMate_MiniMap:SetScale(MBB_Options.Scale /100); end }; @@ -388,6 +390,8 @@ function MBB_AddButton(name) local show = false; local child = getglobal(name); + if not child then return end + if( MBB_Buttons[1] and MBB_Buttons[1] ~= name and getglobal(MBB_Buttons[1]):IsVisible() ) then show = true; end diff --git a/MBB/MBB.toc b/MBB/MBB.toc index e491214..e3c6635 100644 --- a/MBB/MBB.toc +++ b/MBB/MBB.toc @@ -1,6 +1,6 @@ ## Interface: 11200 ## Title: MinimapButtonBag -## Version: 0.507 +## Version: 0.508 ## Author: Tunhadil, LaYt - continue ## 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ü!