mirror of
https://codeberg.org/AntumLuanti/mod-cleaner.git
synced 2025-03-21 15:41: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
|
boilerplate = false
|
||||||
|
|
||||||
file = {
|
file = {
|
||||||
|
"init.lua",
|
||||||
"settings.lua",
|
"settings.lua",
|
||||||
"api.lua",
|
"api.lua",
|
||||||
"chat.lua",
|
"chat.lua",
|
||||||
|
@ -11,8 +12,14 @@ file = {
|
||||||
|
|
||||||
new_type("chatcmd", "Chat Commands")
|
new_type("chatcmd", "Chat Commands")
|
||||||
new_type("setting", "Settings")
|
new_type("setting", "Settings")
|
||||||
|
new_type("tool", "Tools")
|
||||||
|
|
||||||
custom_tags = {
|
custom_tags = {
|
||||||
|
{
|
||||||
|
"privs",
|
||||||
|
title = "Required Privileges",
|
||||||
|
},
|
||||||
|
-- settings
|
||||||
{
|
{
|
||||||
"settype",
|
"settype",
|
||||||
title = "Setting Type",
|
title = "Setting Type",
|
||||||
|
@ -21,4 +28,12 @@ custom_tags = {
|
||||||
"default",
|
"default",
|
||||||
title = "Default Value",
|
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