From 3d816fcb18194563d604cd13a8ec2c3adbb13c43 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 11 Mar 2015 18:58:36 +0100 Subject: =?UTF-8?q?Remove=20placeholders=E2=80=94part=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 36 ------------------------------------ 1 file changed, 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) -- cgit v1.2.3