View Single Post
02-19-24, 10:51 PM   #3
Hubb777
A Flamescale Wyrmkin
 
Hubb777's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 113
Originally Posted by Fizzlemizz View Post
Blizz. will save the frame but if the user removes the addon for any reason, it will reset to the default location if they decide to install the addon again.
Lua Code:
  1. btn:SetPoint("CENTER")
  2. btn:SetSize(100, 40)
  3. btn:SetText("Click me")
  4. btn:SetScript("OnClick", function(self, button, ...)
  5. btn:SetMovable(true)
  6. btn:RegisterForDrag('LeftButton')
  7. btn:SetUserPlaced(true) -- Only works if the frame is created before the PLAYER_LOGIN event
after the /reload command, the button returns to its place. It doesn't work
  Reply With Quote