Add files via upload
This commit is contained in:
@@ -616,6 +616,34 @@ local function slashHandler(msg)
|
||||
print("Minimap button shown. Drag to reposition around the minimap.")
|
||||
end
|
||||
end
|
||||
elseif string.find(msg, "^pos") then
|
||||
-- /attune pos <x> <y> -- set exact offset from UIParent CENTER.
|
||||
-- Values may be off-screen (e.g. -9999) to park the button out of
|
||||
-- the way while still letting MinimapButtonBag collect it.
|
||||
local _, _, sx, sy = string.find(msg, "pos%s+(%-?%d+%.?%d*)%s+(%-?%d+%.?%d*)")
|
||||
local x, y = tonumber(sx), tonumber(sy)
|
||||
if x and y and RA.Minimap then
|
||||
local o = RelationshipsAttuneDB.options
|
||||
o.minimapX, o.minimapY = x, y
|
||||
RA.Minimap:Refresh()
|
||||
print("Minimap button moved to " .. x .. ", " .. y .. ".")
|
||||
else
|
||||
print("Usage: /attune pos <x> <y> (offsets from screen center; can be off-screen)")
|
||||
end
|
||||
elseif msg == "offscreen" or msg == "park" then
|
||||
if RA.Minimap then
|
||||
local o = RelationshipsAttuneDB.options
|
||||
o.minimapX, o.minimapY = -10000, -10000
|
||||
RA.Minimap:Refresh()
|
||||
print("Minimap button parked off-screen. MinimapButtonBag (if installed) can still collect it. Use /attune resetpos to bring it back.")
|
||||
end
|
||||
elseif msg == "resetpos" then
|
||||
if RA.Minimap then
|
||||
local o = RelationshipsAttuneDB.options
|
||||
o.minimapX, o.minimapY = 0, -140
|
||||
RA.Minimap:Refresh()
|
||||
print("Minimap button position reset.")
|
||||
end
|
||||
elseif msg == "sync" then
|
||||
if RA.Comm then RA.Comm:RequestSync() end
|
||||
print(L.MSG_SYNC_SENT)
|
||||
@@ -664,6 +692,9 @@ local function slashHandler(msg)
|
||||
print(" /attune show - open the window")
|
||||
print(" /attune hide - close the window (or hide the minimap button)")
|
||||
print(" /attune minimap - toggle the minimap button")
|
||||
print(" /attune pos x y - place the minimap button at exact offset (can be off-screen)")
|
||||
print(" /attune offscreen- park the minimap button off-screen (MBB can still collect it)")
|
||||
print(" /attune resetpos - restore the minimap button to a visible default position")
|
||||
print(" /attune scan - force a rescan of quests + bags")
|
||||
print(" /attune sync - request sync from your group")
|
||||
print(" /attune debug - dump keyring + item detection")
|
||||
|
||||
Reference in New Issue
Block a user