diff options
author | Wuzzy <almikes@aol.com> | 2016-08-03 00:20:26 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-03 00:20:26 +0200 |
commit | 7d4eef0da3c40af121c847434f5c99465ccf2cc1 (patch) | |
tree | d27caa7cae6db9f4392ad13e9f4ae6ba36a470c4 /init.lua | |
parent | b6e1f461c85cd8be767b53e6d06ddfab179548b8 (diff) |
Add text template for build_formspec param
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -146,6 +146,14 @@ function doc.get_viewed_count(playername, category_id) end end +-- Template function templates, to be used for build_formspec in doc.new_category +doc.entry_templates = {} + +-- Freeform text +doc.entry_templates.text = function(data) + return "textarea[0.25,0.5;11,8;;"..minetest.formspec_escape(data)..";]" +end + --[[ Functions for internal use ]] function doc.formspec_core(tab) |