adding a new dialog no longer asks for save/discard/back
This commit is contained in:
		
							parent
							
								
									a7d9ab5eb2
								
							
						
					
					
						commit
						ca438dd71b
					
				@ -1903,8 +1903,9 @@ yl_speak_up.add_new_dialog = function(dialog, pname)
 | 
			
		||||
		d_sort = next_id
 | 
			
		||||
		}
 | 
			
		||||
	-- store that there have been changes to this npc
 | 
			
		||||
	table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ],
 | 
			
		||||
		"Dialog "..future_d_id..": New dialog added.")
 | 
			
		||||
	-- (better ask only when the new dialog is changed)
 | 
			
		||||
--	table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ],
 | 
			
		||||
--		"Dialog "..future_d_id..": New dialog added.")
 | 
			
		||||
	return future_d_id
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@ -2169,7 +2170,6 @@ yl_speak_up.edit_mode_apply_changes = function(pname, fields)
 | 
			
		||||
		for k, v in pairs(dialog.n_dialogs[ d_id ].d_options) do
 | 
			
		||||
			if(   fields[ "text_option_"..k ]
 | 
			
		||||
			  and fields[ "text_option_"..k ] ~= v.o_text_when_prerequisites_met ) then
 | 
			
		||||
				-- TODO: delete option if text is empty
 | 
			
		||||
				-- store that there have been changes to this npc
 | 
			
		||||
				table.insert(yl_speak_up.npc_was_changed[ n_id ],
 | 
			
		||||
					"Dialog "..d_id..": The text for option "..tostring(k)..
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user