forked from Sokomine/yl_speak_up
made the back to edit dialog option button more comprehensible
This commit is contained in:
parent
f7470a7bb1
commit
d71e5e1d10
@ -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
|
||||
|
||||
|
@ -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;<normal>"..
|
||||
minetest.formspec_escape(n_dialog.d_text) .. "\n</normal>".."]"..
|
||||
"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).."]"..
|
||||
|
Loading…
Reference in New Issue
Block a user