This script:
Code:
/run for _, f in pairs{FrameName} do f:SetMovable(true) f:SetScript("OnDragStart", f.StartMoving) f:SetScript("OnDragStop", f.StopMovingOrSizing) f:RegisterForDrag("LeftButton") end
{FrameName} can be:
PlayerFrame
TargetFrame
Minimap
BuffButton1 (2,3,4, etc)
If you want to move multiple frames at once you can seperate them with commas for example:
Code:
/run for _, f in pairs{PlayerFrame, TargetFrame} ...
This would unlock both the PlayerFrame and TargetFrame
To find other names use this script:
Code:
/script DEFAULT_CHAT_FRAME:AddMessage( GetMouseFocus():GetName() );
Use this script, I suggest a macro, while hovering a mouse over a specific element to get it's name.
PS: When entering vehicles the PlayerFrame will become distorted, I'm not sure if there's a way to correct this like having the vehicle frame in the exact same location but you'll need to /console reloadui and then use the script to unlock them again.
To lock the UnitFrames after you've positioned them just reload the ui with
most of the above was stolen from somewhere honestly can't remember the posters name I want to say it was on the blizz forums.
Connect With Us