summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-03-11 17:36:44 +0100
committerWuzzy <almikes@aol.com>2015-03-11 17:36:44 +0100
commit4f4cb58bb055c3744a5d1f6de6e7ba3161958fd0 (patch)
tree0508f10e78594321709bac0f9b64f0d79d851049
parent944a357adfd53fd5a1bba19d64b7ef057b21ceeb (diff)
Add category tab mock-up
-rw-r--r--init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 73a2be3..553df43 100644
--- a/init.lua
+++ b/init.lua
@@ -144,6 +144,10 @@ function doc.process_form(player,formname,fields)
end
end
elseif(formname == "doc:category") then
+ if fields["doc_button_goto_entry"] then
+ local formspec = doc.formspec_core(3)..doc.formspec_entry("one", "o1")
+ minetest.show_formspec(playername, "doc:entry", formspec)
+ end
elseif(formname == "doc:entry") then
end