View Single Post
07/28/19, 07:56 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,980
ZO_Loot is the base control. LOOT_WINDOW the control for the loot window.
If you make it mouse enabled so you can click it, you can maybe able to drag&drop it.

Tried the following but does not work so far:
/script LOOT_WINDOW.control:SetMouseEnabled(true)
/script LOOT_WINDOW.control:SetMovable(true)
/script LOOT_WINDOW.list:SetMovable(true)
/script LOOT_WINDOW.list:SetMouseEnabled(true)

But this works, if you click the head line above the first item in the loot box:
/script ZO_Loot:SetMouseEnabled(true)
/script ZO_Loot:SetMovable(true)

The only thing is you'd need to add some handlers for OnDrag etc. and OnDrop so the position gets saved in some addons SavedVariables.
And ZOs seems to reset the position each time the window opens so one also would need to add a callback to the LOOT_SCENE 's state SCENE_SHOWING or SCENE_SHOWN to update x and y coordinates to the saved ones.
Maybe Azurah already does this.

Taken info from this file:
https://github.com/esoui/esoui/blob/..._loot/loot.xml

Last edited by Baertram : 07/28/19 at 08:07 AM.
  Reply With Quote