diff options
author | sfan5 <sfan5@live.de> | 2017-05-13 11:52:45 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-05-13 11:52:45 +0200 |
commit | 66b1fa032da0c0b08597ca1b38145eba9d6ce54b (patch) | |
tree | cf14e7a133144b4e8da00823805ffbf8e3f42601 | |
parent | a31f955fb1e5c512f4559452aa65f590fbbc8d6c (diff) |
Remove formspec tester from worldedit_gui
-rw-r--r-- | worldedit_gui/functionality.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/worldedit_gui/functionality.lua b/worldedit_gui/functionality.lua index 7316eae..d9c7cf5 100644 --- a/worldedit_gui/functionality.lua +++ b/worldedit_gui/functionality.lua @@ -765,24 +765,3 @@ worldedit.register_gui_function("worldedit_gui_clearobjects", { minetest.chatcommands["/clearobjects"].func(name, "")
end,
})
-
-worldedit.register_gui_function("worldedit_gui_formspec_tester", {
- name = "Formspec Tester",
- privs = {whatever=true},
- get_formspec = function(name)
- local value = gui_formspec[name]
- return "size[8,6.5]" .. worldedit.get_formspec_header("worldedit_gui_formspec_tester") ..
- string.format("textarea[0.5,1;7.5,5.5;worldedit_gui_formspec_tester_value;Formspec Code;%s]", minetest.formspec_escape(value)) ..
- "button_exit[0,6;3,0.8;worldedit_gui_formspec_tester_show;Show Formspec]"
- end,
-})
-
-worldedit.register_gui_handler("worldedit_gui_formspec_tester", function(name, fields)
- if fields.worldedit_gui_formspec_tester_show then
- gui_formspec[name] = fields.worldedit_gui_formspec_tester_value or ""
- worldedit.show_page(name, "worldedit_gui_formspec_tester")
- minetest.show_formspec(name, "worldedit:formspec_tester", gui_formspec[name])
- return true
- end
- return false
-end)
|