diff --git a/MBB/MBB.lua b/MBB/MBB.lua
index 5d3d5f0..60839aa 100644
--- a/MBB/MBB.lua
+++ b/MBB/MBB.lua
@@ -11,6 +11,7 @@ MBB_DefaultOptions = {
["ExpandDirection"] = 1,
["MaxButtonsPerLine"] = 0,
["AltExpandDirection"] = 4,
+ ["Scale"] = 100,
["Version"] = MBB_Version
};
@@ -35,7 +36,8 @@ MBB_Ignore = {
[14] = "FWGMinimapPOI",
[15] = "MBB_MinimapButtonFrame",
[16] = "QuestieNote",
- [17] = "MetaMap"
+ [17] = "MetaMap",
+ [18] = "LootLinkMinimapButton"
};
@@ -268,7 +270,7 @@ function MBB_PrepareButton(name)
end
if( not MBB_IsInArray(MBB_IgnoreSize, name) ) then
- frame:SetScale(1/Minimap:GetEffectiveScale());
+ frame:SetScale(MBB_Options.Scale * (1/Minimap:GetEffectiveScale())/100);
end
frame.isvisible = frame:IsVisible();
frame.oshow = frame.Show;
@@ -458,6 +460,7 @@ function MBB_SetPositions()
else
frame:SetHeight(31); -- 33
frame:SetWidth(31);
+ frame:SetScale(MBB_Options.Scale * (1/Minimap:GetEffectiveScale())/100);
end
end
@@ -571,7 +574,7 @@ end
function MBB_SetButtonPosition()
if (not MBB_Options) then MBB_Debug("NO MBB_Options");return; end
- MBB_MinimapButtonFrame:SetScale(1/Minimap:GetEffectiveScale());
+ MBB_MinimapButtonFrame:SetScale(MBB_Options.Scale* (1/Minimap:GetEffectiveScale())/100);
if( MBB_Options.AttachToMinimap == 1 ) then
MBB_MinimapButtonFrame:ClearAllPoints();
MBB_MinimapButtonFrame:SetPoint("TOPLEFT", Minimap, "TOPLEFT", MBB_Options.ButtonPos[1], MBB_Options.ButtonPos[2]);
diff --git a/MBB/MBB.toc b/MBB/MBB.toc
index 387116c..0928554 100644
--- a/MBB/MBB.toc
+++ b/MBB/MBB.toc
@@ -1,6 +1,6 @@
## Interface: 11200
## Title: MinimapButtonBag
-## Version: 0.504
+## Version: 0.505
## 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ü!
diff --git a/MBB/MBB.xml b/MBB/MBB.xml
index 547d127..45f1330 100644
--- a/MBB/MBB.xml
+++ b/MBB/MBB.xml
@@ -109,7 +109,7 @@
-
+
@@ -600,14 +600,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getglobal(this:GetName().."Text"):SetText(this:GetValue() .. "%");
+ MBB_Options.Scale = MBB_OptionsFrame_Scale:GetValue();
+ MBB_SetPositions();
+ MBB_SetButtonPosition();
+
+
+ this:SetMinMaxValues(50,150);
+ this:SetValueStep(1);
+ getglobal(this:GetName().."High"):SetText("150%");
+ getglobal(this:GetName().."Low"):SetText("50%");
+
+
+ this:SetValue(MBB_Options.Scale);
+ getglobal(this:GetName().."Text"):SetText(this:GetValue() .. "%");
+
+
+
+
@@ -645,9 +691,9 @@
-
+
-
+
diff --git a/MBB/localization-deDE.lua b/MBB/localization-deDE.lua
index 1b31baa..b6cd5d9 100644
--- a/MBB/localization-deDE.lua
+++ b/MBB/localization-deDE.lua
@@ -14,6 +14,7 @@ if( GetLocale() == "deDE" ) then
MBB_OPTIONS_MAXBUTTONSLABEL = "Max. Knöpfe/Zeile:";
MBB_OPTIONS_MAXBUTTONSINFO = "(0=unendlich)";
MBB_OPTIONS_ALTEXPANSIONLABEL = "Alt. Ausklappen nach:";
+ MBB_OPTIONS_SCALE="Knopfmaßstab";
MBB_HELP1 = "Gib \"/mbb \" ein, wobei folgendes sein kann:";
MBB_HELP2 = " |c00ffffffbuttons|r: Zeigt eine Liste aller Frames in der MBB Leiste";
MBB_HELP3 = " |c00ffffffreset position|r: Setzt den MBB Minimap Button an seine ursprüngliche Position";
diff --git a/MBB/localization-enGB.lua b/MBB/localization-enGB.lua
index fabc9b8..bc25bcf 100644
--- a/MBB/localization-enGB.lua
+++ b/MBB/localization-enGB.lua
@@ -13,6 +13,7 @@ MBB_OPTIONS_EXPANSIONBOTTOM = "Bottom";
MBB_OPTIONS_MAXBUTTONSLABEL = "Max. Buttons/Line:";
MBB_OPTIONS_MAXBUTTONSINFO = "(0=infinity)";
MBB_OPTIONS_ALTEXPANSIONLABEL = "Alt. Expand to:";
+MBB_OPTIONS_SCALE="Button's scale";
MBB_HELP1 = "Type \"/mbb \" where is one of the following:";
MBB_HELP2 = " |c00ffffffbuttons|r: Shows a list of all frames in the MBB bar";
MBB_HELP3 = " |c00ffffffreset position|r: resets the position of the MBB minimap button";
diff --git a/MBB/localization-ruRU.lua b/MBB/localization-ruRU.lua
index 247fd51..b118d90 100644
--- a/MBB/localization-ruRU.lua
+++ b/MBB/localization-ruRU.lua
@@ -14,6 +14,7 @@ if( GetLocale() == "ruRU" ) then
MBB_OPTIONS_MAXBUTTONSLABEL = "Max. кнопок на строку:";
MBB_OPTIONS_MAXBUTTONSINFO = "(0=бесконечно)";
MBB_OPTIONS_ALTEXPANSIONLABEL = "Расширять строки в:";
+ MBB_OPTIONS_SCALE="Масштаб кнопок";
MBB_HELP1 = "Напечатайте \"/mbb \" где есть одна из команд:";
MBB_HELP2 = " |c00ffffffbuttons|r: Показать список всех кнопок в MBB";
MBB_HELP3 = " |c00ffffffreset position|r: Сбросить позицию кнопки МBB у миникарты";