Yeah, I still need to write the circle tool for Zaphod too. I'm glad you're doing the UI, what you have so far for that looks amazing. Casters - what, if any, stamps would you find useful?
and LavaDraw v1.1 is now up with that added. Good idea! I guess PA slows down the js code so by the time it places the arrow head the mouse has already moved. v1.1 should fix that.
Sweet! The bug fix was a lucky guess. I just had it use the last saved mouse position instead of the current one. I wouldn't be able to make a UI half as good as yours, I'm glad we're working together on this!
Here is the first version I think is good enough for casters to try out. Changes Uses LavaDraw v1.1 (Now with arrows and stamps!) The toolbox now remembers its position between games. The toolbox fades out and blurs a little when the mouse isn't over it, so it should be less distracting to viewers. You can now press "TAB" to clear the canvas instead of having to click on the button. Known Issues The stamp tool thumbnail is still my avatar, but the picture it uses it the delta commander. I won't bother to fix this until we decide on one or more stamps to use. Link to Github
I couldn't get the toolbox to appear. It seems that the LavaDraw.js file fails to load and the whole thing crashes as a result. The authors string in modinfo.json is too long though so it causes issues in PAMM.
Yeah, I JUST noticed that LavaDraw is missing from that package. I don't know how I managed to do that... There are other mods with author strings that are just as long. What kind of problem is it causing?
Yep, that would cause it! Here's the issue I was talking about: Now it works great! A little laggy thanks to PA but it's awesome none the less!
Well, here is v0.2.1 with LavaDraw included and the stamp replaced with a Scathis head. Think this is ready for v1.0.0 yet?
One other thing we should think about is having sketchJS do the draw logic on a pre-set interval as long as the mouse is down instead of waiting for the browser to trigger a new event. I bet we could make the lines a lot smoother is we do it that way.
Actually the lack of smoothness is due to PA lag. When it's used in my testing ground html file it looks fine (just download my repo from GitHub to try it out). I don't think we can do much to improve it but it's not an issue because the lines still look pretty good.
Honestly I can't think of any stamps that would be appropriate other than perhaps a crossed swords representing a potential battlefield/confrontation.
I was thinking an explosion clip art or just a ping symbol. I probably wouldn't want to include more than one or two stamps, because I want to avoid UI clutter.
I'd go ahead and add the ping symbol as the only stamp and then add more if any requests or ideas come in. The ping symbol can be used for almost anything so it should be useful.