« Return to Thread: Would like to make a small addition to Pipmak

Re: Would like to make a small addition to Pipmak

by rivenwanderer :: Rate this Message:

Reply to Author | View in Thread

defaults.lua
OK, that was easier than I'd expected!  I've uploaded my implementation (assuming the Nabble interface does what I want).  The tabs may be wrong, and the nesting of if blocks is a bit messy, but it works :)

I discovered that if you specify a handle with a negative azimuth, it draws properly when you show handles with "C", but the negative portion does not recognize your clicks to transfer you to the target node.  So I added a check to make sure that my center-referenced coordinates are always converted to positive azimuths (maybe this should be done for all azimuths? or should other work be done so that the click is recognized?)

I'd obviously like to see center-referenced handles make it into the official release at some point--but I saw that the pipmak_internal.handle(handle) function can be overridden by defining it in my own project's main.lua, which makes me happy :)

Thanks for the help so far!

 « Return to Thread: Would like to make a small addition to Pipmak