Garry's Mod

Garry's Mod

279 个评价
SpawnMenu Nested Categories!
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
371.238 KB
2024 年 10 月 7 日 上午 3:05
2024 年 10 月 12 日 下午 11:01
4 项改动说明 ( 查看 )

订阅以下载
SpawnMenu Nested Categories!

描述
[Update! Categories are now alphabetized]
This addon will override some sandbox scripts to allow spawnmenu categories to be nested. There are a few built-in methods for categorising a few common entities and addons. Also two bonus postprocess effects! (Check texturize)

If you're an add-on developer, and you want to make use of nested categories all you do is:

In ENT, SWEP, or vehicle list entries, where "Category" is used, just create extra entries that are numbered in the nesting you want.

SWEP.Category1 = "FirstCat" --First Category
SWEP.Category2 = "SecondCat"
SWEP.Category3 = "ThirdCat"
SWEP.Category4... blah blah blah
SWEP.Category5... and so on
it keeps nesting until there isn't another category

the menu falls back onto default category behavior if Category1 is missing.
You can assign the icon on each category using list.Set like so:

list.Set("EntityTreeIcons", "FirstCat.SecondCat.ThirdCat", "icon16/cup.png")

Subcategories will appear among the items in the selected category. You can specify what image to show for the icon for this:
list.Set("EntityTreeThumbnails", "FirstCat.SecondCat.ThirdCat", "entities/baloney.png")

For other types, the format is the same:
-VehicleTreeIcons
-WeaponTreeIcons
-EntityTreeIcons
-GlobalTreeIcons (Will apply to all matching categories)

You can also specify single categories and it will apply to ones that match at the bottom level:

list.Set("GlobalTreeIcons", "Half-Life 2", "games/16/hl2.png")
(gives all instances of "Half-Life 2" the HL2 logo.)

Please let me know if you have any requests for this addon or suggestions!

List of built-in addon support:
-TDMCars (Vehicles are categorized by brand)
-Food and Household Items (Food items are divided into subcategories, based on the "kind" of food they are.)
-All NPCs that are reskins of half-life 2 NPCs
-Mac's CoD MW2 SWEPs
-Zelda:BotW Bows Pack
热门讨论 查看全部(1)
0
8 月 10 日 上午 6:23
The code might need to be cleaned up.
Blahaj13
58 条留言
Motloop 10 月 8 日 上午 10:16 
Could you move combine and rebel to default categories?
reecha1234567890 7 月 1 日 下午 5:16 
I think its a issue on my end, if it isn't i'll send screenshot later
PYROTEKNIK  [作者] 7 月 1 日 上午 4:01 
are you able to show me a screenshot?
reecha1234567890 6 月 30 日 下午 9:33 
If weapons already have a group name, and theres other weapons that have the same group name/ nest etc, would it just not show at all, i fear im having that issue
PYROTEKNIK  [作者] 6 月 26 日 下午 1:12 
ragdolls typically populate the props section of the spawn menu. my addon does not change the props tab. if you download addons containing props and ragdolls, they'll either have a spawnlist created by the addon author, or they'll be under the addons section in the bottom of the left panel.
Googly_Moogly 6 月 26 日 上午 11:49 
is_there_a_rag-doll_part_of_said_menu?_i_have_trouble_finding_my_rag-dolls_that_I've_downloaded,and_it's_honestly_annoying.
PYROTEKNIK  [作者] 6 月 3 日 下午 4:43 
at the moment i have other obligations.
Munchy 6 月 3 日 下午 2:50 
I hate to be that guy but is there any plans to update this addon?
joby29 5 月 1 日 下午 8:57 
could use settings and fixes and combine and rebels not in crappy reskins but good mod:AngelDude:
Moss 3 月 31 日 下午 2:08 
I've noticed the combine and rebels are in crappy reskins any plan on fixing?