Add files via upload

This commit is contained in:
totalllyswede
2026-07-09 18:48:22 -07:00
committed by GitHub
parent a3ae16a352
commit 31387dd5f3
7 changed files with 1599 additions and 1579 deletions
+5 -6
View File
@@ -1,4 +1,4 @@
MBB_Version = GetAddOnMetadata("MinimapButtonBag", "Version"); MBB_Version = GetAddOnMetadata("MinimapButtonBag_Octo", "Version") or "?";
MBB_DebugFlag = 0; MBB_DebugFlag = 0;
MBB_DragFlag = 0; MBB_DragFlag = 0;
MBB_ShowTimeout = -1; MBB_ShowTimeout = -1;
@@ -475,7 +475,7 @@ function MBB_RestoreButton(name)
button.oclearallpoints(button); button.oclearallpoints(button);
button.osetpoint(button, button.opoint[1], button.opoint[2], button.opoint[3], button.opoint[4], button.opoint[5]); button.osetpoint(button, button.opoint[1], button.opoint[2], button.opoint[3], button.opoint[4], button.opoint[5]);
button:SetHeight(button.osize[1]); button:SetHeight(button.osize[1]);
button:SetWidth(button.osize[1]); button:SetWidth(button.osize[2]);
button.ClearAllPoints = button.oclearallpoints; button.ClearAllPoints = button.oclearallpoints;
button.SetPoint = button.osetpoint; button.SetPoint = button.osetpoint;
if (button.isvisible) then if (button.isvisible) then
@@ -558,12 +558,11 @@ function MBB_OnClick(arg1)
if( arg1 and arg1 == "RightButton" and IsControlKeyDown() ) then if( arg1 and arg1 == "RightButton" and IsControlKeyDown() ) then
if( MBB_Options.AttachToMinimap == 1 ) then if( MBB_Options.AttachToMinimap == 1 ) then
local xpos,ypos = GetCursorPosition(); local xpos,ypos = GetCursorPosition();
local scale = MBB_Options.Scale/100;--UIParent:GetEffectiveScale(); --GetCVar("uiScale"); local scale = UIParent:GetEffectiveScale();
MBB_Debug("cursor "..(xpos).." "..(ypos)) MBB_Debug("cursor "..(xpos).." "..(ypos))
MBB_Options.AttachToMinimap = 0; 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 )) MBB_Debug("position "..(xpos/scale ).." "..(ypos/scale ))
--(xpos/scale)-10, (ypos/scale)-10};
MBB_SetButtonPosition(); MBB_SetButtonPosition();
else else
MBB_ResetPosition(); MBB_ResetPosition();
@@ -661,7 +660,7 @@ function MBB_OnUpdate(elapsed)
local x,y =0,0; local x,y =0,0;
if (Squeenix or (simpleMinimap_Skins and simpleMinimap_Skins:GetShape() == "square") 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)) x = math.max(-xdelta, math.min((xdelta*1.5) * cos(angle), xdelta))
y = math.max(-ydelta, math.min((ydelta*1.5) * sin(angle), ydelta)) y = math.max(-ydelta, math.min((ydelta*1.5) * sin(angle), ydelta))
else else
+1 -1
View File
@@ -25,7 +25,7 @@
</Anchors> </Anchors>
<Layers> <Layers>
<Layer level="BACKGROUND"> <Layer level="BACKGROUND">
<Texture name="$parent_Texture" file="Interface\AddOns\MinimapButtonBag\icon"> <Texture name="$parent_Texture" file="Interface\Icons\INV_Misc_Bag_08">
<Size> <Size>
<AbsDimension x="17" y="17"/> <AbsDimension x="17" y="17"/>
</Size> </Size>
+14
View File
@@ -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
+13 -6
View File
@@ -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.
![screenshot](https://user-images.githubusercontent.com/98543024/155025699-12b30d8d-92c3-41c4-80ab-959cd68b7de4.png) ![screenshot](https://user-images.githubusercontent.com/98543024/155025699-12b30d8d-92c3-41c4-80ab-959cd68b7de4.png)
[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 ## Instructions
* Download **[Latest Version](https://github.com/McPewPew/MinimapButtonBag-TurtleWoW/archive/refs/heads/master.zip)** * Unzip into `WoW\Interface\AddOns`
* Unzip it into WoW\Interface\AddOns * Make sure the resulting folder is named exactly `MinimapButtonBag_Octo`
* Rename "MinimapButtonBag-master" to "MinimapButtonBag"
## 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.