summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-03-11 18:58:36 +0100
committerWuzzy <almikes@aol.com>2015-03-11 18:58:36 +0100
commit3d816fcb18194563d604cd13a8ec2c3adbb13c43 (patch)
tree59b43335b455244d38258341445d82798deee4a6
parent6766b0a9074bda7ca078a4178b14bb7106179b02 (diff)
Remove placeholders—part 2
-rw-r--r--init.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/init.lua b/init.lua
index c042fef..2c85c68 100644
--- a/init.lua
+++ b/init.lua
@@ -22,17 +22,6 @@ function doc.new_category(id, def)
end
end
-doc.new_category("one",
-{
- name="One",
- build_formspec = function(data)
- return "label[0,1;Description: "..data.description.."]label[0,2;Time: "..data.time.."]"
- end,
-}
-)
-doc.new_category("two", {name="Two"})
-doc.new_category("three", {name="Three"})
-
function doc.new_entry(category_id, entry_id, def)
if doc.data.categories[category_id] ~= nil then
doc.data.categories[category_id].entries[entry_id] = def
@@ -42,31 +31,6 @@ function doc.new_entry(category_id, entry_id, def)
end
end
-doc.new_entry("one", "o1", {
- name="O1",
- data = {
- description = "This is a test description",
- time = 54,
- population = "10000000",
- },
-})
-doc.new_entry("one", "o2", {
- name="O2",
- data = {
- description = "This is a test description 2.",
- time = 100,
- population = "50000",
- },
-})
-doc.new_entry("one", "o3", {
- name="O3",
- data = {
- description = "Third try description.",
- time = 1,
- population = "10000000",
- },
-})
-
function doc.show_doc(playername)
local formspec = doc.formspec_core()..doc.formspec_main()
minetest.show_formspec(playername, "doc:main", formspec)