View Single Post
04-21-10, 06:10 PM   #4
eddiemars
A Cyclonian
 
eddiemars's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 43
Another question, since I don't feel like thread spamming I'll just tack it on here, and if no one sees it that's okay.

Okay so I've been playing around a lot with various frames doing:
Code:
frame:RegisterForDrag("LeftButton")
frame:SetClampedToScreen(true)
frame:SetMovable(true)
frame:SetScript("OnDragStart", function(self) if IsAltKeyDown() then self:StartMoving() end end)
frame:SetScript("OnDragStop", function(self) if IsAltKeyDown() then self:StopMovingOrSizing() end end)
I find it works for just about every frame indeed. BUT, when I /reload, it only saves the position of a couple. MinimapMailFrame for example, that gets saved perfectly. TimeManagerClockButton however, it can be moved yes, but goes back to it's original position each time after a /reload. I have also tried calling frame:ClearAllPoints() (also I tried frame:SetUserPlaced(true), this just makes errors) but it seems to make no difference at all. Does anyone know either why this happens to only some frames, or a way to stop this resetting from happening?
__________________
MAGICAL CRAWDAD APPROVED:

Last edited by eddiemars : 04-21-10 at 06:19 PM.
  Reply With Quote