WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Is there any utility library that has a snapping frame feature? (https://www.wowinterface.com/forums/showthread.php?t=55192)

seyan777 02-26-17 06:12 PM

Is there any utility library that has a snapping frame feature?
 
Howdy!

The title says pretty much all.

I'm looking for a library that offers a snapping frame feature.

For example, if FrameA's left side is close enough to FrameB's right side, set FrameA's point to

Code:

FrameA:SetPoint("LEFT", FrameB, "RIGHT", 0, 0);
and so on.

I'm pretty sure I have gone through every single library addons listed on Curse, but no luck :(

Details! has a similar feature to this, but was not easy to figure with :p

If there is no such library exists yet, what would be the best practice to achieve this?

I'm currently planning to go through the web and search about snapping window algorithm or something.

Any ideas, please?

Cheers!

Seerah 02-26-17 07:55 PM

There is the FlyPaper library which is used in Dominos, or the SimpleSticky library used in Bartender.

seyan777 02-26-17 08:29 PM

Quote:

Originally Posted by Seerah (Post 322420)
There is the FlyPaper library which is used in Dominos, or the SimpleSticky library used in Bartender.

Sweet! Glad that there are some examples I can refer to :)

Both, FlyPaper and SimpleSticky are embedded into each addons, but not uploaded standalone on Curse and prolly that's why I could've not found them.
(Maybe removed as they were not updated or something. I don't know :D)

Thank you for the info, Seerah!

Seerah 02-26-17 08:46 PM

You're welcome! They were basically written for those addons, but are available for others to use.


All times are GMT -6. The time now is 01:04 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI