WorldMap Window: keep the size, drag by the title, OctoBus Transports button; add Loot History

- The map keeps the scale picked with Ctrl+Mousewheel (saved per
  character, .4 to 2). It was reset to .85 on every open and by the
  Turtle WoW maximize wrapper.
- The title bar drags the window: on Turtle the title sits 17 units above
  the frame, so the frame's click area now extends over it.
- With OctoBus loaded, a Transports button left of the Continent dropdown
  runs OctoBus' own toggle. Its window is lifted above the map while both
  are open and restored when the map closes.
- New Loot History module (/loothistory), ported from brues-code/pfUI and
  rebuilt with stock 1.12 widgets, on ClassicAPI's C_LootHistory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019W3rwusM4i1CYaHQAYixJ7
This commit is contained in:
2026-11-02 04:08:31 +00:00
co-authored by Claude Opus 5.5
parent f3fd1d5c56
commit 15712e82c7
8 changed files with 562 additions and 7 deletions
+7 -1
View File
@@ -45,7 +45,8 @@ module.enable = function(self)
WorldMapFrame:SetMovable(true)
WorldMapFrame:EnableMouse(true)
WorldMapFrame:SetScale(.85)
-- Keep the size picked with Ctrl + Mousewheel (saved by WorldMap Window).
WorldMapFrame:SetScale(ShaguTweaks.GetWorldMapScale and ShaguTweaks.GetWorldMapScale() or .85)
WorldMapFrame:ClearAllPoints()
WorldMapFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 30)
WorldMapFrame:SetWidth(WorldMapButton:GetWidth() + 15)
@@ -54,6 +55,11 @@ module.enable = function(self)
-- overwrite wrong title position set by turtlewow
WorldMapFrameTitle:SetPoint("TOP", WorldMapFrame, 0, 17)
-- The title now sits above the frame: let the title bar drag it too.
if ShaguTweaks.UpdateWorldMapDragArea then
ShaguTweaks.UpdateWorldMapDragArea()
end
BlackoutWorld:Hide()
end
end