Ulysses

General => Developers Corner => Topic started by: LuaTenshi on March 04, 2016, 12:24:59 AM

Title: Pluging into Spraymesh
Post by: LuaTenshi on March 04, 2016, 12:24:59 AM
Hello, everyone I have recently created a sort of context menu plugin for Spraymesh (https://facepunch.com/showthread.php?t=1451605). This is in no way a release because I would like to add much more to this, but if any one wants to use it in its current state they can find it here... https://gist.github.com/LuaTenshi/2a32e660ade31b5474fb

The above also contains a context menu builder function I created a long time ago, feel free to use it in your projects. (I should probably make a lib of some sort.)
Screenshot attached.


Next Planned Spraymesh (https://facepunch.com/showthread.php?t=1451605) Plugin...
Instead of showing you that cat picture on your first spray it will open a GUI box telling you about spraymesh and asking you to give a URL as well as giving you the ability to choose some presets.

I also plan to make a context menu plugin for SprayURL (https://facepunch.com/showthread.php?t=1444489)
Title: Re: Pluging into Spraymesh
Post by: roastchicken on March 04, 2016, 04:16:09 AM
Looks really nice! One question though: Do the context menus always show, or is there a command you can use to turn them off? Looking at the code it looks it's activated by right clicking, but I woke up too recently for my brain to be completely trustworthy yet :p

I love SprayMesh and it's always great to see people making great things for it.
Title: Re: Pluging into Spraymesh
Post by: LuaTenshi on March 04, 2016, 01:57:13 PM
Looks really nice! One question though: Do the context menus always show, or is there a command you can use to turn them off? Looking at the code it looks it's activated by right clicking, but I woke up too recently for my brain to be completely trustworthy yet :p

I love SprayMesh and it's always great to see people making great things for it.

You hold C (to bring up the context menu stuff) and then just right click on the spray you want to get info about.
Title: Re: Pluging into Spraymesh
Post by: Bletotum on March 04, 2016, 03:06:55 PM
spraymesh creator guy here

just wanted to say thanks; i'm too busy to add features like this right now so it's nice to see good scripts made for it