diff --git a/fs_edit_general.lua b/fs_edit_general.lua index 4f6303d..9beb93c 100644 --- a/fs_edit_general.lua +++ b/fs_edit_general.lua @@ -813,7 +813,8 @@ yl_speak_up.get_fs_edit_option_related = function(player, table_click_result, show_element_function(elements[ x_id ]))..";0]".. "button[2.0,1.8;1.5,0.9;delete_element;Delete]".. "button[4.0,1.8;1.5,0.9;change_element;Change]".. - "button[6.0,1.8;1,0.9;back;Back]" + "button[6.0,1.8;5.5,0.9;back;Back to edit dialog option \"".. + tostring(o_id).."\"]" end end diff --git a/fs_edit_options_dialog.lua b/fs_edit_options_dialog.lua index 02bfa54..9e516b4 100644 --- a/fs_edit_options_dialog.lua +++ b/fs_edit_options_dialog.lua @@ -283,8 +283,11 @@ yl_speak_up.get_fs_edit_option_dialog = function(player, n_id, d_id, o_id) minetest.formspec_escape(d_id).."]".. "tooltip[show_current_dialog;Go back to dialog ".. minetest.formspec_escape(d_id).." and continue editing that dialog.]".. + -- tell the player what this formspec is about + "label[6.0,0.4;You are editing dialog option \""..tostring(o_id).."\":]".. -- the text the NPC says - "label[0.2,0.6;NPC says:]".. + "label[0.2,0.6;NPC says ".. + minetest.formspec_escape("[dialog \""..tostring(d_id).."\"]:").."]".. "hypertext[1.2,1.2;19.6,2.5;d_text;".. minetest.formspec_escape(n_dialog.d_text) .. "\n".."]".. "tooltip[1.2,1.2;19.6,3.0;This is what the NPC says to the player.]".. @@ -299,7 +302,8 @@ yl_speak_up.get_fs_edit_option_dialog = function(player, n_id, d_id, o_id) "Please click on a pre(C)ondition in order\n".. "to edit or delete it!]".. -- answer of the player (the actual option) - "label[0.2,6.8;..the player may answer with this text:]".. + "label[0.2,6.8;..the player may answer with this text".. + minetest.formspec_escape(" [dialog option \""..tostring(o_id).."\"]:").."]".. "label[1.2,7.6;A:]".. "field[1.7,7.1;19.1,0.9;text_option_"..minetest.formspec_escape(o_id)..";;".. minetest.formspec_escape(d_option.o_text_when_prerequisites_met).."]"..