Dominos

Dominos

19M Downloads

Enhanced Bar Snapping with more points!

Goranaws opened this issue ยท 7 comments

commented

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.

commented

Do you have some examples/screenshots of the new anchor points?

commented

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.

commented

A quick black and white gif should work! Before and after a reload, just to show it's works between games.
gif-181126_103041

commented

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

commented

I'll see what I can do to modify my current design to work as you've described.

commented

I've made some changes, and added lots of documentation. let me know if I need to explain anything further. :)