Use speaking category names
This commit is contained in:
parent
8ad3bc33cb
commit
c752876077
4
doc.lua
4
doc.lua
@ -11,7 +11,7 @@ function used in category definitions. ]]
|
|||||||
-- This category only contains simple text.
|
-- This category only contains simple text.
|
||||||
doc.new_category("example1", {
|
doc.new_category("example1", {
|
||||||
-- This name is for humans and mandatory
|
-- This name is for humans and mandatory
|
||||||
name = "Text Examples",
|
name = "Example: Text",
|
||||||
-- This category uses a preset formspec builder for simple text
|
-- This category uses a preset formspec builder for simple text
|
||||||
build_formspec = doc.entry_builders.text
|
build_formspec = doc.entry_builders.text
|
||||||
--[[ Reminder: build_formspec determines how the entry data will be presented
|
--[[ Reminder: build_formspec determines how the entry data will be presented
|
||||||
@ -38,7 +38,7 @@ doc.new_entry("example1", "entity", {
|
|||||||
This is a category like the one before, but this time, we add a hidden entry.
|
This is a category like the one before, but this time, we add a hidden entry.
|
||||||
]]
|
]]
|
||||||
doc.new_category("example_hide", {
|
doc.new_category("example_hide", {
|
||||||
name = "Example Hidden",
|
name = "Example: Hidden entry",
|
||||||
build_formspec = doc.entry_builders.text
|
build_formspec = doc.entry_builders.text
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user