mirror of
https://codeberg.org/AntumLuanti/mod-cleaner.git
synced 2025-03-15 12:51:22 +00:00
LDoc: add "tool" type
This commit is contained in:
parent
6b211cf5f6
commit
b9455caeb2
1 changed files with 15 additions and 0 deletions
|
@ -4,6 +4,7 @@ format = "markdown"
|
|||
boilerplate = false
|
||||
|
||||
file = {
|
||||
"init.lua",
|
||||
"settings.lua",
|
||||
"api.lua",
|
||||
"chat.lua",
|
||||
|
@ -11,8 +12,14 @@ file = {
|
|||
|
||||
new_type("chatcmd", "Chat Commands")
|
||||
new_type("setting", "Settings")
|
||||
new_type("tool", "Tools")
|
||||
|
||||
custom_tags = {
|
||||
{
|
||||
"privs",
|
||||
title = "Required Privileges",
|
||||
},
|
||||
-- settings
|
||||
{
|
||||
"settype",
|
||||
title = "Setting Type",
|
||||
|
@ -21,4 +28,12 @@ custom_tags = {
|
|||
"default",
|
||||
title = "Default Value",
|
||||
},
|
||||
-- craft items/tools
|
||||
{
|
||||
"img",
|
||||
title = "Image",
|
||||
format = function(value)
|
||||
return "<img src=\"../../../textures/" .. value .. "\" style=\"width:32px; height:32px;\" />"
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue