Garry's Mod

Garry's Mod

60 个评价
Spray Manager V2 for SprayMesh
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 写实
文件大小
发表于
更新日期
409.937 KB
2019 年 7 月 15 日 下午 10:42
2021 年 3 月 21 日 下午 2:16
10 项改动说明 ( 查看 )

订阅以下载
Spray Manager V2 for SprayMesh

在 Sony 的 1 个合集中
SkrubsTTT Workshop Content 2023
24 件物品
描述
Spray Manager for SprayMesh
Just a simple addon I made that adds a UI that works with SprayMesh to allow users to manage their image collection without having to constantly copy/paste links into console.

New V2 update!
I noticed over 1000 people are using this addon now so I felt I needed to redesign the UI so it doesn't look like complete a** anymore!
The new system uses Bull's HTML draw library so you can see thumbnail images in the list now.
There's even a random spray button for if you're one of those people that adds 400 sprays and can't decide which to use.

Let me show you its features!

- Super simple setup:
Just copy a direct image link into the appropriate box, give it a name and short description to help you find it later and you're done!

- Quick and convenient usage:
Want to change your SprayMesh image quickly?
Just type /sprays into chat, select a new image from your collection and you're good to go.
It takes a matter of seconds and doesn't require you to tab out of the game.

- Very light on servers:
None of the sprays are actually stored on the server.
In fact, 99% of this addon is clientside, so even if your users have a massive collection of images it won't slow your server down at all!

- Search function:
Speaking of a massive collection of images, nobody likes wearing out their scroll wheel trying to find the right meme in a long menu.
The handy-dandy search bar at the bottom of the UI has you covered. It even searches through image descriptions so if you can't quite remember what you called your spray you can still find it.

- Cross-server collections:
Nobody wants to sit there re-adding all their sprays every time they change server.
If the server is running this addon, your image collection will be there for you.

- Spray trading:
Got an image in your collection you want to share with a friend?
Just right-click it in your library and send it to them directly without having to tab out of the game or copy/paste anything!


Search bar demo

FAQ:
How do I use it?
Type /sprays in chat and go from there.

How to I add a new image to my collection?
Open the menu with /sprays and click the icon in the top right.

I messed up, how do I delete something from my collection?
Right click the entry in the /sprays menu and press delete.

Do I need SprayMesh installed on my server for this to work?
Yes, obviously.

I've got errors everywhere and my cat is on fire!
I'm sorry to hear that. Drop me a comment with the error message and I'll see if I can fix it.

----

Server owners
This addon does not add any kind of automatic chat announcements, because they're annoying.
So you will have to manually add some way to let players know to use /sprays.

----

To those more scripting inclined:
I whipped this monstrosity up one morning at 3AM, and I wasn't particularly good at lua to begin with, so I'd like to apologise in advance for how sloppy my code is.

Credits!
As mentioned before this addon's UI wouldn't be nearly as cool without Bull 92's UI library that they generously made freely acquirable on their GitHub[github.com]. Thank you!

If you have any improvements or suggestions for how I can make this addon better please feel free to let me know!
13 条留言
MelonHead269 2023 年 2 月 5 日 下午 1:04 
this would be awesome if you could use the sprays you have downloaded on your computer
Onion 2022 年 11 月 27 日 下午 6:28 
Just noticed I needed the required addon @Sony, thanks for replying!
Sony  [作者] 2022 年 11 月 27 日 下午 5:49 
@Onion Does the server have the SprayMesh addon installed?
This is only a UI for SprayMesh, and doesn't do much on its own.
Onion 2022 年 11 月 27 日 下午 2:42 
when I spray the image I loaded it doesnt show and the standard gmod spray comes out..
mailonthis 2021 年 10 月 31 日 下午 2:23 
Have an above average next 24 hours of your life...
Raylito 2021 年 1 月 12 日 下午 6:20 
@Sony Thank You ;)
Sony  [作者] 2021 年 1 月 11 日 下午 6:28 
@Raylight You can bind a key to the command 'sony_spraymenu' to open the UI without typing anything.
Raylito 2021 年 1 月 11 日 下午 5:15 
How do I assign a key to open that spray window without having to type the command?
dickhead_penguin@w.alley 2020 年 10 月 7 日 下午 3:49 
@Saint Baron many thanks, appreciate it
Saint Baron 2020 年 8 月 23 日 下午 3:27 
FOR THOSE WISHING TO FIX SPRAYMESH: Go into your gmod properties on Steam, and under the "Betas" section, change your version to "x86-64 - Chromium + 64-bit binaries". This will not break anything and will fix any issues with this and another addons that use HTML