Moving frames and saving position without using SavedVariables
See below...
|
I reviewed my code.
Now we have a dedicated dragframe that sits on top of the anchored frame. The dragframe receives the drag event and delegates the mouse move event to the anchored frame. Additionally lock/unlock and reset function can be anchored directly on the frame. lua Code:
If you want to call the function you can make use of the global frame name and slash commands. lua Code:
The most important part is that the drag function gets called on code init. It must not be called on events like PLAYER_LOGIN. That will reset the values that Blizzard read from the layout-local.txt file. Example implementations: http://code.google.com/p/rothui/source/detail?r=841 |
Moving Blizzard frames with the same method is no problem aswell.
Lua Code:
|
I belive I used something like this before:
Lua Code:
|
Oh. Never knew of: http://wowprogramming.com/docs/widge...ateTitleRegion
Awesome. |
All times are GMT -6. The time now is 05:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI