Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(6 Kb)
Download
Updated: 05-23-06 06:56 PM
Pictures
File Info
Updated:05-23-06 06:56 PM
Created:unknown
Downloads:13,125
Favorites:33
MD5:

IFrameManager  Popular! (More than 5000 hits)

Version: 0.1.1.0
by: Shag [More]

Description

IFrameManager is a frame positioning addon. Addons register their frames within IFrameManager and it then allows the user to move the frames, snap to each other, and bind frames together permanently.


Features
- Frames snap to each others' edges
- Anchors for permanent positioning
- Resolution/Scale independent


Users Guide

To go into the edit mode, that is to have all the movable overlays displayed, use the slash command /ifm. Once the black overlay frames are visible, you can move them with your mouse. If you move the edges of two frames close enough to each other, they will snap.

If you press and hold down the left control key, anchors will appear inside the overlay frames. To bind two frames to each other permanently, first click on an anchor inside the frame you want to bind to another frame, this anchor will turn blue. Then click on an anchor inside another frame you want to bind the first frame to. Voila, now the first frame will always be positioned relatively to the second frame. Now you can fine-tune the position of the first frame, moving it will not break its anchor.

If you move the mouse over a frame, the frame to which the mouseover frame is bound to will turn red, indicating that the mouseover frame is bound to the second (red) one. If no frame turns red, it means that the frame is bound to UIParent. Additionally, if you press and hold down the left control key, the anchors on which the frame is bound will turn yellow.

You can bind every frame to all edges, corners and the center of UIParent. All frames are bound to the center of UIParent by default.

To reset a binding of a frame, bind the frame to itself (press and hold down the left control key, and click twice on an anchor in the frame), the frame will then be bound to the center of UIParent. If you try to create a binding that would result in a circular dependency, IFrameManager will warn you and not allow to perform the binding.


AddOns that support IFrameManager

  • Perl Classic Unit Frames
  • coolDown
  • HealSync


Instructions for Developers

To register 'myAddOnFrame' within IFrameManager, use the following code:

Code:
IFrameManager:Register(myAddOnFrame, IFrameManager:Interface())
The frame you want to register:
  • must have a name (:GetName() must not return nil)
  • must be reachable through getglobal()
  • must be available when VARIABLES_LOADED is dispatched


ChangeLog

0.1.1.0
- changed minimap button position, see screenshot
- many bugs fixed

0.1.0.0
- added Minimap button to toggel between the two modes.
- added check to not allow the user to 'start' the edit mode twice.

Optional Files (0)


Post A Reply Comment Options
Unread 05-30-06, 09:14 AM  
wereHamster
A Black Drake
 
wereHamster's Avatar
AddOn Author - Click to view AddOns

Forum posts: 80
File comments: 15
Uploads: 10
Originally posted by gnosis3d
Can this addon be removed once changes are made to the GUI, or does this addon itself do the moving-around-work?
You can remove it after you're done moving the frames...

But note that IFM uses nearly zero memory until enabled the first time! It creates the overlay frames (capsules) when activated the first time. Leaving it only enabled, but not activated is fine, it doesn't use any CPU time and only minimal memory (just a few tables).
Last edited by wereHamster : 05-30-06 at 09:52 AM.
wereHamster is offline Report comment to moderator  
Reply With Quote
Unread 05-30-06, 08:14 AM  
gnosis3d
A Deviate Faerie Dragon
 
gnosis3d's Avatar

Forum posts: 11
File comments: 1
Uploads: 0
Can this addon be removed once changes are made to the GUI, or does this addon itself do the moving-around-work?

(if I use it, done with it, dont need to have it, want to remove it)
gnosis3d is offline Report comment to moderator  
Reply With Quote
Unread 05-27-06, 03:26 PM  
wereHamster
A Black Drake
 
wereHamster's Avatar
AddOn Author - Click to view AddOns

Forum posts: 80
File comments: 15
Uploads: 10
Re: Moveable minimap button

Originally posted by Corsec
Any idea if this will be implemented? I know it would require adding saved variables, but it would be nice to be able to position it so it aligns on the map with all the other minimap buttons I have.
Not likely at the moment, thought I may change my mind
wereHamster is offline Report comment to moderator  
Reply With Quote
Unread 05-26-06, 01:37 PM  
Corsec
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Moveable minimap button

Any idea if this will be implemented? I know it would require adding saved variables, but it would be nice to be able to position it so it aligns on the map with all the other minimap buttons I have.
Corsec is offline Report comment to moderator  
Reply With Quote
Unread 04-20-06, 04:16 AM  
wereHamster
A Black Drake
 
wereHamster's Avatar
AddOn Author - Click to view AddOns

Forum posts: 80
File comments: 15
Uploads: 10
I know.. but this addon doesn't use stickyframes ! It's a reimplementation of stickyframes if you want to see it that way.
wereHamster is offline Report comment to moderator  
Reply With Quote
Unread 04-19-06, 09:54 AM  
Industrial
A Fallenroot Satyr
 
Industrial's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 82
Uploads: 14
great stuff but please do note this about stickyframes..
This is an example utility library that allows you to specify frames to stick to.
The API will change, this is just a hacked proof of concept.
anyhow good stuff
Industrial is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: