forked from Sokomine/yl_speak_up
fixed bug
This commit is contained in:
parent
d5f628638f
commit
97c6741a4e
@ -381,9 +381,15 @@ yl_speak_up.get_fs_talkdialog_main_text_in_edit_mode = function(
|
|||||||
"Save this dialog.",
|
"Save this dialog.",
|
||||||
true)
|
true)
|
||||||
|
|
||||||
|
if(active_dialog and active_dialog.d_text) then
|
||||||
table.insert(formspec, "textarea[0.2,5;19.6,17.8;d_text;;"..
|
table.insert(formspec, "textarea[0.2,5;19.6,17.8;d_text;;"..
|
||||||
minetest.formspec_escape(active_dialog.d_text)..
|
minetest.formspec_escape(active_dialog.d_text or "?")..
|
||||||
"]")
|
"]")
|
||||||
|
else
|
||||||
|
table.insert(formspec, "textarea[0.2,5;19.6,17.8;d_text;;"..
|
||||||
|
minetest.formspec_escape("[no text]")..
|
||||||
|
"]")
|
||||||
|
end
|
||||||
return {h = h, formspec = formspec, d_id_to_dropdown_index = d_id_to_dropdown_index,
|
return {h = h, formspec = formspec, d_id_to_dropdown_index = d_id_to_dropdown_index,
|
||||||
dialog_list = dialog_list}
|
dialog_list = dialog_list}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user