[REL] Sketch tools for casters

Discussion in 'Mod Discussions' started by Martenus, March 18, 2014.

  1. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    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?
  2. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Is it possible to have the stamp placed from the center instead of the top left corner of the image?
  3. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Yep, I'd just need to find the size of the image and then offset it from that.
  4. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    That arrow looks really good if you draw is slow enough, but when I draw faster I get this.
    arrow.jpg
  5. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    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.
  6. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    You are amazing! I just tested it and both of those changes work perfectly.
  7. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    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!
  8. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    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

    Attached Files:

    LavaSnake likes this.
  9. teddythebear

    teddythebear Member

    Messages:
    50
    Likes Received:
    21
    Obviously the Awesome Head and maby a SOON:D
    LavaSnake and cptconundrum like this.
  10. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    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.
  11. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    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?
  12. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Yep, that would cause it! Here's the issue I was talking about:
    upload_2014-3-24_13-18-43.png

    Now it works great! A little laggy thanks to PA but it's awesome none the less!
  13. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    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?

    Attached Files:

    teddythebear likes this.
  14. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    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.
  15. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    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.
  16. zaphodx

    zaphodx Post Master General

    Messages:
    2,350
    Likes Received:
    2,409
    Honestly I can't think of any stamps that would be appropriate other than perhaps a crossed swords representing a potential battlefield/confrontation.
    Martenus likes this.
  17. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    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.
  18. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    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.
  19. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Anyone want to make a ping .png? :D
  20. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Well, here is the ping ring straight from PA papas. Does that help? ping_ring.png
    LavaSnake likes this.

Share This Page