Enhanced Bar Snapping with more points!
Goranaws opened this issue ยท 7 comments
Here's the concept code: https://github.com/Goranaws/Dominos/tree/master/Dominos
I was able to increase the number of snappable points, while reducing the over line count of the module by 50 lines. Every point on a moving frame, has three optional points it can snap to on another frame. (example: TopLeft can snap to BottomLeft, BottomCenter or BottomRight. Or: RightCenter could snap to TopLeft, LeftCenter or BottomLeft)
Its fully functional, but I suspect you would apply your own personal touch, before release, if you choose to use it.
I'll have to take a few when we get home. Currently helping to renovate a building for the business I work for, to move in.
I don't like corner to corner anchors as there are too few pixels involved. I do think there's utility in allowing say, the bottom left/right of a bar to anchor to the bottom of the screen.
Also I've gone ahead and LibStub'd flypaper: https://github.com/Tuller/FlyPaper/tree/master
I've made some changes, and added lots of documentation. let me know if I need to explain anything further. :)