+ small fixes
+ fix nil error #9
This commit is contained in:
LaYt
2017-04-03 10:15:42 +07:00
parent 6561ab14ae
commit 1d12533d8f
2 changed files with 9 additions and 5 deletions
+8 -4
View File
@@ -20,7 +20,7 @@ MBB_DefaultOptions = {
}; };
MBB_Include = { MBB_Include = {
[1] = "DPSMate_MiniMap",
}; };
MBB_Ignore = { MBB_Ignore = {
@@ -52,8 +52,6 @@ MBB_IgnoreSize = {
[4] = "STC_SoulstoneButton", [4] = "STC_SoulstoneButton",
[5] = "STC_SpellstoneButton", [5] = "STC_SpellstoneButton",
[6] = "STC_FirestoneButton", [6] = "STC_FirestoneButton",
-- [7] = "WIM_IconFrameButton",
[7] = "MonkeyBuddyIconButton"
}; };
--Code by Grayhoof (SCT) --Code by Grayhoof (SCT)
@@ -80,7 +78,11 @@ MBB_ExtraSize = {
WIM_IconFrameButton:SetScale(1); WIM_IconFrameButton:SetScale(1);
end, end,
["MonkeyBuddyIconButton"] = function() ["MonkeyBuddyIconButton"] = function()
--MonkeyBuddyIconButton:SetScale(0.75); MonkeyBuddyIconButton:SetHeight(33);
MonkeyBuddyIconButton:SetWidth(33);
end,
["DPSMate_MiniMap"] = function()
DPSMate_MiniMap:SetScale(MBB_Options.Scale /100);
end end
}; };
@@ -388,6 +390,8 @@ function MBB_AddButton(name)
local show = false; local show = false;
local child = getglobal(name); 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 if( MBB_Buttons[1] and MBB_Buttons[1] ~= name and getglobal(MBB_Buttons[1]):IsVisible() ) then
show = true; show = true;
end end
+1 -1
View File
@@ -1,6 +1,6 @@
## Interface: 11200 ## Interface: 11200
## Title: MinimapButtonBag ## Title: MinimapButtonBag
## Version: 0.507 ## Version: 0.508
## Author: Tunhadil, LaYt - continue ## Author: Tunhadil, LaYt - continue
## Notes: Reduces minimap buttons and makes them accessible through a menu! ## 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-deDE: Reduziert die Minimap Knöpfe und erlaubt den Zugriff auf diese über ein Menü!