+ 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 = {
[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
+1 -1
View File
@@ -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ü!