diff --git a/editor/fs/fs_quest_gui.lua b/editor/fs/fs_quest_gui.lua index da988ef..e596756 100644 --- a/editor/fs/fs_quest_gui.lua +++ b/editor/fs/fs_quest_gui.lua @@ -31,3 +31,11 @@ yl_speak_up.get_fs_quest_gui = function(player, param) "button[0.2,1.0;4.0,0.6;manage_variables;Manage variables]".. "button[6.2,1.0;4.0,0.6;manage_quests;Manage quests]" end + + +yl_speak_up.register_fs("quest_gui", + yl_speak_up.input_quest_gui, + yl_speak_up.get_fs_quest_gui, + -- no special formspec required: + nil +) diff --git a/show_fs.lua b/show_fs.lua index 5772578..8c1a16f 100644 --- a/show_fs.lua +++ b/show_fs.lua @@ -114,10 +114,6 @@ yl_speak_up.input_handler = function(player, formname, fields) elseif formname == "yl_speak_up:show_what_points_to_this_dialog" then yl_speak_up.input_fs_show_what_points_to_this_dialog(player, formname, fields) return true - -- create and manage quests - elseif formname == "yl_speak_up:quest_gui" then - yl_speak_up.input_quest_gui(player, formname, fields) - return true end end @@ -393,10 +389,6 @@ yl_speak_up.show_fs = function(player, fs_name, param) yl_speak_up.show_fs_ver(pname, "yl_speak_up:show_what_points_to_this_dialog", yl_speak_up.show_what_points_to_this_dialog(player, param)) - elseif(fs_name == "quest_gui") then - yl_speak_up.show_fs_ver(pname, "yl_speak_up:quest_gui", - yl_speak_up.get_fs_quest_gui(player, param)) - -- fallback in case of wrong call else minetest.chat_send_player(pname, "Error: Trying to show wrong "..