show_fs: manage_(quests/variables)
This commit is contained in:
		
							parent
							
								
									f6bcb2e6c6
								
							
						
					
					
						commit
						92d3622464
					
				@ -354,3 +354,11 @@ yl_speak_up.get_fs_manage_quest_steps = function(player, param)
 | 
			
		||||
 | 
			
		||||
	return table.concat(formspec, "")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
yl_speak_up.register_fs("manage_quest_steps",
 | 
			
		||||
	yl_speak_up.input_manage_quest_steps,
 | 
			
		||||
	yl_speak_up.get_fs_manage_quest_steps,
 | 
			
		||||
	-- no special formspec required:
 | 
			
		||||
	nil
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -238,3 +238,11 @@ yl_speak_up.get_fs_manage_quests = function(player, param)
 | 
			
		||||
	yl_speak_up.speak_to[pname].q_id = quest.id
 | 
			
		||||
	return table.concat(formspec, "")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
yl_speak_up.register_fs("manage_quests",
 | 
			
		||||
	yl_speak_up.input_manage_quests,
 | 
			
		||||
	yl_speak_up.get_fs_manage_quests,
 | 
			
		||||
	-- no special formspec required:
 | 
			
		||||
	nil
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -473,3 +473,11 @@ yl_speak_up.get_fs_manage_variables = function(player, param)
 | 
			
		||||
	end
 | 
			
		||||
	return table.concat(formspec, "")
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
yl_speak_up.register_fs("manage_variables",
 | 
			
		||||
	yl_speak_up.input_manage_variables,
 | 
			
		||||
	yl_speak_up.get_fs_manage_variables,
 | 
			
		||||
	-- no special formspec required:
 | 
			
		||||
	nil
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										24
									
								
								show_fs.lua
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								show_fs.lua
									
									
									
									
									
								
							@ -98,18 +98,6 @@ yl_speak_up.input_handler = function(player, formname, fields)
 | 
			
		||||
	elseif formname == "yl_speak_up:assign_quest_step" then
 | 
			
		||||
		yl_speak_up.input_fs_assign_quest_step(player, formname, fields)
 | 
			
		||||
		return true
 | 
			
		||||
	-- handled in fs_manage_variables.lua
 | 
			
		||||
	elseif formname == "yl_speak_up:manage_variables" then
 | 
			
		||||
		yl_speak_up.input_fs_manage_variables(player, formname, fields)
 | 
			
		||||
		return true
 | 
			
		||||
	-- handled in fs_manage_quests.lua
 | 
			
		||||
	elseif formname == "yl_speak_up:manage_quests" then
 | 
			
		||||
		yl_speak_up.input_fs_manage_quests(player, formname, fields)
 | 
			
		||||
		return true
 | 
			
		||||
	-- handled in fs_manage_quest_steps.lua
 | 
			
		||||
	elseif formname == "yl_speak_up:manage_quest_steps" then
 | 
			
		||||
		yl_speak_up.input_fs_manage_quest_steps(player, formname, fields)
 | 
			
		||||
		return true
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@ -369,18 +357,6 @@ yl_speak_up.show_fs = function(player, fs_name, param)
 | 
			
		||||
		yl_speak_up.show_fs_ver(pname, "yl_speak_up:assign_quest_step",
 | 
			
		||||
			yl_speak_up.get_fs_assign_quest_step(player, param))
 | 
			
		||||
 | 
			
		||||
	elseif(fs_name == "manage_variables") then
 | 
			
		||||
		yl_speak_up.show_fs_ver(pname, "yl_speak_up:manage_variables",
 | 
			
		||||
			yl_speak_up.get_fs_manage_variables(player, param))
 | 
			
		||||
 | 
			
		||||
	elseif(fs_name == "manage_quests") then
 | 
			
		||||
		yl_speak_up.show_fs_ver(pname, "yl_speak_up:manage_quests",
 | 
			
		||||
			yl_speak_up.get_fs_manage_quests(player, param))
 | 
			
		||||
 | 
			
		||||
	elseif(fs_name == "manage_quest_steps") then
 | 
			
		||||
		yl_speak_up.show_fs_ver(pname, "yl_speak_up:manage_quest_steps",
 | 
			
		||||
			yl_speak_up.get_fs_manage_quest_steps(player, param))
 | 
			
		||||
 | 
			
		||||
	-- fallback in case of wrong call
 | 
			
		||||
	else
 | 
			
		||||
		minetest.chat_send_player(pname, "Error: Trying to show wrong "..
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user