Download
(4Kb)
Download
Updated: 12-09-09 08:05 AM
Pictures
File Info
Updated:12-09-09 08:05 AM
Created:08-14-09 07:31 AM
Downloads:22,780
Favorites:85
MD5:

oUF MoveableFrames  Popular! (More than 5000 hits)

Version: 1.6
by: Xruptor [More]

THIS ADDON IS OUTDATED! IT HAS BEEN ABANDONED! I DON'T PLAN TO UPDATE IT!

THIS MOD IS NO LONGER MAINTAINED. I HAVE ONLY KEPT IT IN CASE YOUR USING A REALLY OLD OUF LAYOUT! OTHERWISE USE THE MOD BELOW INSTEAD TO MOVE YOUR FRAMES! IT'S THE OFFICIAL ONE FROM HASTE!

oUF_MovableFrames





------------------------------------------------------------------------

BTW: Yes I know it's spelled 'movable' and not 'moveable', but you'd be surprised how many people forget that. I also wanted this library to show in searches when the word 'move' was used. :P

Since so many oUF layouts have frames that cannot be moved or repositioned. I created this plugin to allow users to move frames without having to have any programming experience.

NOTE: This plugin requires that the oUF layout author add support for this plugin in their oUF layout. If support is not added then this plugin will not work.

Usage: Type /mvf to toggle the unlocking and locking of frames.

Header frames will have a small movable red square that can be positioned anywhere on the screen. You may or may not be able to see the frames attached to this anchor.


----------------------------
Authors:

NOTE: Authors you MUST make sure your frames and objects are created with NAMES. If no names are provided then the library will return errors. The library cannot possibly know how to save/restore a frame or object with no name.

To implement this plugin in your layout, simply add the code below in the style creation (frame creation) phase of your addon.

Code:
self.MoveableFrames = true

OPTIONAL:
You can also use the new BlackList and WhiteList functions added in version 1.3:

Code:
oUF_MoveableFrames_BLKLST(framename)

OPTIONAL:
Blacklisted frames will not be able to be moved or repositioned by the user. So if you have a specific frame you want not to be moved, then use this function.

Code:
oUF_MoveableFrames_WHTLST(framename)

OPTIONAL:
Whitelisted frames will be able to be moved and repositioned by the user. This function can be used for frames outside of the oUF object set. So if you have custom frames you wish to be added to the moveableframes library, you can use this function to do so.


-----------------------
HEADER FRAME SUPPORT:
-----------------------


Header frames are now supported in this library. The 'oUF_MoveableFrames_HEADER' function will automatically create an anchor frame that can be moved by the user. This anchor will be stored and repositioned each time the user logs into the game. There is no special setup required. All frames that are passed to this function will have it's SetPoint set to the anchor.

Code:
oUF_MoveableFrames_HEADER(frame, desc, ofsx, ofsy)
NOTE: In order to see the anchors on the screen, the users must use the slash command /mvf. The anchor frames are hidden by default.

Version 1.6:
-Updated toc

Version 1.5:
-Removed some redundant code
-Some code cleanup

Version 1.4:
NOTE: Frames must now be moved using the unlock/lock toggle. Type /mvf to toggle.
-Removed some redundant code
-Removed the ability to drag frames using the ALT key.
-Added a lock/unlock toggle for moving frames. (Alt Key drag has been removed)

Version 1.3:
-Added two new functions to allow authors to add frames to a WhiteList or BlackList.
-Added function oUF_MoveableFrames_BLKLST, allows an author to add a frame to a list of frames that cannot be moved or repositioned.
-Added function oUF_MoveableFrames_WHTLST, allows an author to add a frame to a list of frames that can be moved and repositioned.

-Added Header Frame Support!
--Added function oUF_MoveableFrames_HEADER, allows an author to designate a header frame he/she wants to be moved and repositioned. This function will automatically create a movable anchor frame that will have it's positioned stored and then restored. The parent frame will have it's position automatically set to the anchor. There is no special setup required.

-Added a slash command, /mvf to display and hide all the header frame anchors on the screen.


Version 1.2:
-Added several nil checks
-Added a warning display for frames/objects with no names to reposition.
-Added a note to oUF style authors to please add names to their frames/objects.

Version 1.1:
-Fixed placement issues and position bugs that were occurring for some users. (Special thanks to Dawn)
Optional Files (0)


Post A Reply Comment Options
Unread 10-28-09, 11:44 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
I want to use it with oUF_viv, however I'm using a function to make them moveable and have set movableframes to false for party and raidframes, since they reset anyway and I wanted to prevent creating a mess. Since function and moveableframes both save to layout-local.

But party and raid resetting their position is not only a prob with oUF_viv, from what I read, other layouts, like Caelian's also "suffer" from it.


edit: I could upload a modified version of viv (without the move function) as an optional file. Basically, it shouldn't be a problem to keep the code for testing purposes, though. Since oUF_MoveableFrames lets you move frames by clicking directly on the bars. I have my "move frames" sitting on the sides of bars to prevent clicking issues. You can also show those frames with an option (see setup part of the layout).

Thanks for looking into it.
Last edited by Dawn : 10-28-09 at 11:50 AM.
Report comment to moderator  
Reply With Quote
Unread 10-28-09, 02:16 PM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 198
Uploads: 0
Originally posted by Derkyle
The creator of the layout must provide names for their frames or objects when created. Otherwise how is the library supposed to know what frame is being moved and how to store the positions? If no name is given then the returned value is nil or anonymous frame.

Example:
local newFrame = CreateFrame("Frame", "MyTempFrame", UIParent)


This creates a frame named MyTempFrame with a parent of UIParent

Example 2:
local newFrame = CreateFrame("Frame", nil, UIParent)


This creates a frame with absolutely NO NAME. Thus impossible for the moving function to store and restore a frame or object by name.

------------

Mind you I can put some checks for nil values, however no storing/restoring of positions would occur and you would have to move the frames every single time.

If an issue like this occurs, it's best to contact the creator of the oUF style and alert them that their frames or objects require names.
THANKS FOR YOUR ANSWER^^
Report comment to moderator  
Reply With Quote
Unread 10-29-09, 06:37 AM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
Originally posted by Dawn
I want to use it with oUF_viv, however I'm using a function to make them moveable and have set movableframes to false for party and raidframes, since they reset anyway and I wanted to prevent creating a mess. Since function and moveableframes both save to layout-local.

But party and raid resetting their position is not only a prob with oUF_viv, from what I read, other layouts, like Caelian's also "suffer" from it.


edit: I could upload a modified version of viv (without the move function) as an optional file. Basically, it shouldn't be a problem to keep the code for testing purposes, though. Since oUF_MoveableFrames lets you move frames by clicking directly on the bars. I have my "move frames" sitting on the sides of bars to prevent clicking issues. You can also show those frames with an option (see setup part of the layout).

Thanks for looking into it.
Hmmm... let me take a look at this modified version. If what you say is true, then it would appear that headers may be causing some issues on several layouts.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Unread 10-30-09, 02:34 AM  
zizko
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Hi!

I used Ouf_alekk layout, and i dont know where can i paste :
self.MoveableFrames = true

Pls, help me!
Many Thanks!
Report comment to moderator  
Reply With Quote
Unread 11-01-09, 08:09 AM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
New BlackList and WhiteList functions added in version 1.3:

Code:
oUF_MoveableFrames_BLKLST(framename)
Blacklisted frames will not be able to be moved or repositioned by the user. So if you have a specific frame you want not to be moved, then use this function.

Code:
oUF_MoveableFrames_WHTLST(framename)
Whitelisted frames will be able to be moved and repositioned by the user. This function can be used for frames outside of the oUF object set. So if you have custom frames you wish to be added to the moveableframes library, you can use this function to do so.


-----------------------
HEADER FRAME SUPPORT:
-----------------------


Header frames are now supported in this library. The 'oUF_MoveableFrames_HEADER' function will automatically create an anchor frame that can be moved by the user. This anchor will be stored and repositioned each time the user logs into the game. There is no special setup required. All frames that are passed to this function will have it's SetPoint set to the anchor.

Code:
oUF_MoveableFrames_HEADER(frame, desc, ofsx, ofsy)
NOTE: In order to see the anchors on the screen, the users must use the slash command /mvf. The anchor frames are hidden by default.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Unread 11-04-09, 08:23 AM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
Version 1.4:
NOTE: Frames must now be moved using the unlock/lock toggle. Type /mvf to toggle.
-Removed some redundant code
-Removed the ability to drag frames using the ALT key.
-Added a lock/unlock toggle for moving frames. (Alt Key drag has been removed)
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Unread 11-07-09, 07:13 AM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
Originally posted by zizko
Hi!

I used Ouf_alekk layout, and i dont know where can i paste :
self.MoveableFrames = true

Pls, help me!
Many Thanks!
Find in Interface\ouf_Alekk\ouf_alekk.lua

Code:
self.Health = CreateFrame("StatusBar", nil, self)
Right ABOVE that put

Code:
self.MoveableFrames = true
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Unread 11-07-09, 10:48 AM  
zizko
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by Derkyle
Find in Interface\ouf_Alekk\ouf_alekk.lua

Code:
self.Health = CreateFrame("StatusBar", nil, self)
Right ABOVE that put

Code:
self.MoveableFrames = true
Many Thanks!
Worked
Report comment to moderator  
Reply With Quote
Unread 12-14-09, 11:00 AM  
Rhaethe
A Warpwood Thunder Caller
 
Rhaethe's Avatar

Forum posts: 98
File comments: 35
Uploads: 0
Party frames resetting

Hi there

I've tried a couple layouts to see if its the layout or the plugin ... and it "appears" that it might be the plugin.

When moving around frames, the party and raid frames consistently reset. You drag, and then the frame bounces back to where it started from as soon as you let it go.
Report comment to moderator  
Reply With Quote
Unread 12-14-09, 11:27 AM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
Re: Party frames resetting

Originally posted by Rhaethe
Hi there

I've tried a couple layouts to see if its the layout or the plugin ... and it "appears" that it might be the plugin.

When moving around frames, the party and raid frames consistently reset. You drag, and then the frame bounces back to where it started from as soon as you let it go.
Which layouts? Remember if the layout author didn't add support for headers in the layout. It is possible that the party frames are anchor to an invisible frame header that isn't movable. When you drag the party frames all it does it put them back to the invisible header frame.

I added header frame support in version 1.5 and it's been working just fine for the layouts that use it
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Unread 12-14-09, 02:40 PM  
Rhaethe
A Warpwood Thunder Caller
 
Rhaethe's Avatar

Forum posts: 98
File comments: 35
Uploads: 0
Re: Re: Party frames resetting

Originally posted by Derkyle
Which layouts? Remember if the layout author didn't add support for headers in the layout. It is possible that the party frames are anchor to an invisible frame header that isn't movable. When you drag the party frames all it does it put them back to the invisible header frame.

I added header frame support in version 1.5 and it's been working just fine for the layouts that use it
That might be it, since the layouts I tried (and used it fine, previously) are older layouts that haven't been updated in a bit. I'd also not updated MVF plugin since its 1.3 version until now.

I will check through and make sure. Thanks!
Last edited by Rhaethe : 12-14-09 at 02:43 PM.
Report comment to moderator  
Reply With Quote
Unread 12-16-09, 11:59 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Haste released his own moving plug-in today:
http://www.wowinterface.com/downloads/info15425
Report comment to moderator  
Reply With Quote
Unread 12-16-09, 02:12 PM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
Originally posted by p3lim
Haste released his own moving plug-in today:
http://www.wowinterface.com/downloads/info15425
That's cool his version is actually very neat. I guess that makes this mod obsolete now. Oh well
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Unread 12-16-09, 03:02 PM  
Squishiman
A Murloc Raider
 
Squishiman's Avatar

Forum posts: 4
File comments: 17
Uploads: 0
I find this move plugin alot easyer to use less frame box's to move then hastes keep up the good work Derkyle
Report comment to moderator  
Reply With Quote
Unread 12-16-09, 04:24 PM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
Originally posted by Squishiman
I find this move plugin alot easyer to use less frame box's to move then hastes keep up the good work Derkyle
thanks
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: