added import_from_ink.lua - but no input for that yet
This commit is contained in:
parent
d5b5832b02
commit
8e0f53fdb5
@ -410,7 +410,7 @@ yl_speak_up.export_to_ink_language = function(dialog, use_prefix)
|
||||
local tmp = {"-> ", main_loop,
|
||||
"\n=== ", main_loop, " ===",
|
||||
"\nWhat do you wish to do?",
|
||||
"\n+ Talk to ", tostring(dialog.n_npc), " -> ", use_prefix..tostring(start_dialog),
|
||||
"\n+ Talk to ", tostring(dialog.n_npc or prefix or "-unknown-"), " -> ", use_prefix..tostring(start_dialog),
|
||||
"\n+ End -> END"}
|
||||
|
||||
local vars_used = ink_export.print_variables_used(tmp, dialog)
|
||||
|
@ -156,7 +156,7 @@ end
|
||||
yl_speak_up.update_dialog = function(log, dialog, dialog_name, dialog_text)
|
||||
if(dialog_name and yl_speak_up.is_special_dialog(dialog_name)) then
|
||||
-- d_trade, d_got_item, d_dynamic and d_end are not imported because they need to be handled diffrently
|
||||
table.insert(log, "Note: Not importing dialog \""..tostring(dialog_name).."\" because it is a special dialog.")
|
||||
table.insert(log, "Note: Not importing dialog text for \""..tostring(dialog_name).."\" because it is a special dialog.")
|
||||
-- the options of thes special dialogs are still relevant
|
||||
return dialog_name
|
||||
end
|
||||
|
1032
import_from_ink.lua
Normal file
1032
import_from_ink.lua
Normal file
File diff suppressed because it is too large
Load Diff
2
init.lua
2
init.lua
@ -231,6 +231,8 @@ yl_speak_up.reload = function(modpath, log_entry)
|
||||
dofile(modpath .. "export_to_ink.lua")
|
||||
dofile(modpath .. "fs/fs_export.lua")
|
||||
|
||||
dofile(modpath .. "import_from_ink.lua")
|
||||
|
||||
-- edit_mode.lua has been moved to the mod npc_talk_edit:
|
||||
-- dofile(modpath .. "editor/edit_mode.lua")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user