Category: oUF: Plugins
Addon Information
Works with 3.3
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Xruptor's Portal Bug Reports Feature Requests
Author:
Version:
1.6
Date:
12-09-2009 08:05 AM
Size:
3.80 Kb
Downloads:
11,116
Favorites:
102
MD5:
Pictures
oUF MoveableFrames   Popular! (More than 5000 hits)
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.
  Change Log - oUF MoveableFrames
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 - oUF MoveableFrames
Sorry, there are currently no optional files available.
  Archived Versions - oUF MoveableFrames
File Name
Version
Size
Author
Date
1.5
4kB
Derkyle
11-13-2009 07:04 AM
1.4
4kB
Derkyle
11-04-2009 08:22 AM
1.3
4kB
Derkyle
11-01-2009 07:58 AM
1.2
2kB
Derkyle
10-27-2009 07:43 AM
1.1
2kB
Derkyle
08-15-2009 09:20 AM
1.0
2kB
Derkyle
08-14-2009 08:31 AM
  Comments - oUF MoveableFrames
Post A Reply Comment Options
Old 12-18-2009, 07:39 AM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
The only problem is this, as much as I would love to continue this project; Layout authors would have to implement support for this plug-in into their layout.

Haste's version doesn't require the addon author to do anything on their part.

In fact, Dawn one of the authors whom I worked closely to develop much of the additions to this plug-in. Has already systematically removed all support for this plug-in from his layout. He was the first one to do so.

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

Also it doesn't help that Haste named his plug in practically the same name as mine. All that will do is cause confusion as to which is which. Mine was misspelled deliberately so that when a person searched for the word 'move' this plug-in would be listed.

But I have nothing against Haste as I think he's a fine programmer and writes excellent code. If anything I'll just mark this plug-in as abandoned or something, if I continue to see people remove support for it. After all he is the creator of the core oUF to begin with, his version of the plug-in would always be much more efficient then mine.
__________________
Click HERE for the ultimate idiot test.
-Xruptor

Last edited by Xruptor : 12-21-2009 at 11:09 AM.
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-18-2009, 03:16 AM  
omicron
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 3
File comments: 47
Uploads: 1
Quote:
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
same here
omicron is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-16-2009, 04:24 PM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
Quote:
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.
-Xruptor
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-16-2009, 03:02 PM  
Squishiman
A Defias Bandit
 
Squishiman's Avatar

Forum posts: 3
File comments: 11
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
Squishiman is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-16-2009, 02:12 PM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
Quote:
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.
-Xruptor
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-16-2009, 11:59 AM  
p3lim
A Molten Giant
 
p3lim's Avatar
Interface Author - Click to view interfaces

Forum posts: 615
File comments: 948
Uploads: 21
Haste released his own moving plug-in today:
http://www.wowinterface.com/downloads/info15425
p3lim is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-14-2009, 02:40 PM  
Rhaethe
A Warpwood Thunder Caller
 
Rhaethe's Avatar

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

Quote:
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-2009 at 02:43 PM.
Rhaethe is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-14-2009, 11:27 AM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
Re: Party frames resetting

Quote:
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.
-Xruptor
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-14-2009, 11:00 AM  
Rhaethe
A Warpwood Thunder Caller
 
Rhaethe's Avatar

Forum posts: 98
File comments: 45
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.
Rhaethe is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-07-2009, 10:48 AM  
zizko
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Quote:
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
zizko is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-07-2009, 07:13 AM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
Quote:
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.
-Xruptor
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-04-2009, 08:23 AM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
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.
-Xruptor
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-01-2009, 08:09 AM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
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.
-Xruptor
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-30-2009, 03:34 AM  
zizko
A Kobold Labourer

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

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

Pls, help me!
Many Thanks!
zizko is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-29-2009, 07:37 AM  
Xruptor
An Aku'mai Servant
 
Xruptor's Avatar
Interface Author - Click to view interfaces

Forum posts: 33
File comments: 247
Uploads: 21
Quote:
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.
-Xruptor
Xruptor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.