View Single Post
01-28-18, 06:12 AM   #8
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
This is the Uganadan wai my bratha:

Lua Code:
  1. local b = _G.Boss1TargetFrame
  2. b:SetMovable(true)
  3. b:SetUserPlaced(true)
  4. b:ClearAllPoints()
  5. b:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -350, -470)
  6. b:SetMovable(false)
  7.  
  8. local moving
  9. hooksecurefunc(Boss1TargetFrame, "SetPoint", function(self)
  10.     if moving then
  11.         return
  12.     end
  13.     moving = true
  14.     self:SetMovable(true)
  15.     self:SetUserPlaced(true)
  16.     self:ClearAllPoints()
  17.     self:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -350, -470)
  18.     self:SetMovable(false)
  19.     moving = nil
  20. end)

Only call it once at ADDON_LOADED my queen.

Last edited by Resike : 01-28-18 at 06:14 AM.
  Reply With Quote