Add files via upload
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
MBB_Version = GetAddOnMetadata("MinimapButtonBag", "Version");
|
||||
MBB_Version = GetAddOnMetadata("MinimapButtonBag_Octo", "Version") or "?";
|
||||
MBB_DebugFlag = 0;
|
||||
MBB_DragFlag = 0;
|
||||
MBB_ShowTimeout = -1;
|
||||
@@ -475,7 +475,7 @@ function MBB_RestoreButton(name)
|
||||
button.oclearallpoints(button);
|
||||
button.osetpoint(button, button.opoint[1], button.opoint[2], button.opoint[3], button.opoint[4], button.opoint[5]);
|
||||
button:SetHeight(button.osize[1]);
|
||||
button:SetWidth(button.osize[1]);
|
||||
button:SetWidth(button.osize[2]);
|
||||
button.ClearAllPoints = button.oclearallpoints;
|
||||
button.SetPoint = button.osetpoint;
|
||||
if (button.isvisible) then
|
||||
@@ -558,12 +558,11 @@ function MBB_OnClick(arg1)
|
||||
if( arg1 and arg1 == "RightButton" and IsControlKeyDown() ) then
|
||||
if( MBB_Options.AttachToMinimap == 1 ) then
|
||||
local xpos,ypos = GetCursorPosition();
|
||||
local scale = MBB_Options.Scale/100;--UIParent:GetEffectiveScale(); --GetCVar("uiScale");
|
||||
local scale = UIParent:GetEffectiveScale();
|
||||
MBB_Debug("cursor "..(xpos).." "..(ypos))
|
||||
MBB_Options.AttachToMinimap = 0;
|
||||
MBB_Options.ButtonPos ={xpos/scale ,ypos/scale } --{(xpos/scale)-10, (ypos/scale)-10}
|
||||
MBB_Options.ButtonPos ={xpos/scale ,ypos/scale }
|
||||
MBB_Debug("position "..(xpos/scale ).." "..(ypos/scale ))
|
||||
--(xpos/scale)-10, (ypos/scale)-10};
|
||||
MBB_SetButtonPosition();
|
||||
else
|
||||
MBB_ResetPosition();
|
||||
@@ -661,7 +660,7 @@ function MBB_OnUpdate(elapsed)
|
||||
|
||||
local x,y =0,0;
|
||||
if (Squeenix or (simpleMinimap_Skins and simpleMinimap_Skins:GetShape() == "square")
|
||||
or (pfUI and pfUI_config["disabled"]["minimap"] ~= "1")) then
|
||||
or (pfUI and pfUI_config and pfUI_config["disabled"] and pfUI_config["disabled"]["minimap"] ~= "1")) then
|
||||
x = math.max(-xdelta, math.min((xdelta*1.5) * cos(angle), xdelta))
|
||||
y = math.max(-ydelta, math.min((ydelta*1.5) * sin(angle), ydelta))
|
||||
else
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<Texture name="$parent_Texture" file="Interface\AddOns\MinimapButtonBag\icon">
|
||||
<Texture name="$parent_Texture" file="Interface\Icons\INV_Misc_Bag_08">
|
||||
<Size>
|
||||
<AbsDimension x="17" y="17"/>
|
||||
</Size>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
## Interface: 11200
|
||||
## Title: MinimapButtonBag_Octo
|
||||
## Version: 1.0
|
||||
## Author: Tunhadil, LaYt (+McPewPew, +Olzon)
|
||||
## X-Website: https://github.com/McPewPew/MinimapButtonBag
|
||||
## X-Date: 2026-07-09
|
||||
## 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: Компанует все иконки на миникарте в одну.
|
||||
## SavedVariablesPerCharacter: MBB_Exclude, MBB_Options
|
||||
localization-enGB.lua
|
||||
localization-deDE.lua
|
||||
localization-ruRU.lua
|
||||
MBB.xml
|
||||
@@ -1,12 +1,19 @@
|
||||
# MinimapButtonBag
|
||||
# MinimapButtonBag_Octo
|
||||
|
||||
MinimapButtonBag cleans up your Minimap and relocates the buttons in a menu bar.
|
||||
MinimapButtonBag_Octo cleans up your Minimap and relocates the buttons in a menu bar.
|
||||
|
||||

|
||||
|
||||
[A minor edit of MBB, all credit to Tunhadil and [LaYt](https://github.com/laytya/MinimapButtonBag-vanilla)]
|
||||
[A fork of MBB, all credit to Tunhadil, LaYt ([MinimapButtonBag-vanilla](https://github.com/laytya/MinimapButtonBag-vanilla)), and McPewPew ([MinimapButtonBag-TurtleWoW](https://github.com/McPewPew/MinimapButtonBag-TurtleWoW))]
|
||||
|
||||
## Instructions
|
||||
* Download **[Latest Version](https://github.com/McPewPew/MinimapButtonBag-TurtleWoW/archive/refs/heads/master.zip)**
|
||||
* Unzip it into WoW\Interface\AddOns
|
||||
* Rename "MinimapButtonBag-master" to "MinimapButtonBag"
|
||||
* Unzip into `WoW\Interface\AddOns`
|
||||
* Make sure the resulting folder is named exactly `MinimapButtonBag_Octo`
|
||||
|
||||
## Changelog (Octo fork - V1.0)
|
||||
* Original addon was causing crashes with OctoWoW., forked to get it working without issues.
|
||||
* Fixed a bug in `MBB_RestoreButton` where right-click-restoring a button to the minimap set its width equal to its height instead of its original width, distorting non-square buttons.
|
||||
* Hardened the pfUI drag-position check (`pfUI_config["disabled"]["minimap"]`) with proper nil-guards, so it can no longer throw a Lua error every frame while dragging if `pfUI_config` isn't shaped as expected.
|
||||
* Replaced the custom `icon.tga` with the stock in-game bag icon `Interface\Icons\INV_Misc_Bag_08` — no more bundled icon file, and it sidesteps the RLE-compressed TGA loading issue on the 1.12.1 client entirely.
|
||||
* Cleaned up a malformed `## X-Date` line in the `.toc` (missing colon).
|
||||
* Fixed Ctrl+Right-click "detach from minimap" positioning: it was converting the cursor position using the icon's own display scale (`MBB_Options.Scale/100`) instead of the UI's actual effective scale (`UIParent:GetEffectiveScale()`), so the button would land in the wrong spot instead of following your cursor away from the minimap.
|
||||
|
||||
Reference in New Issue
Block a user