forked from Sokomine/yl_speak_up
		
	show_fs: quest_gui
This commit is contained in:
		
							parent
							
								
									8838307d16
								
							
						
					
					
						commit
						928675a3c1
					
				| @ -31,3 +31,11 @@ yl_speak_up.get_fs_quest_gui = function(player, param) | ||||
| 		"button[0.2,1.0;4.0,0.6;manage_variables;Manage variables]".. | ||||
| 		"button[6.2,1.0;4.0,0.6;manage_quests;Manage quests]" | ||||
| end | ||||
| 
 | ||||
| 
 | ||||
| yl_speak_up.register_fs("quest_gui", | ||||
| 	yl_speak_up.input_quest_gui, | ||||
| 	yl_speak_up.get_fs_quest_gui, | ||||
| 	-- no special formspec required: | ||||
| 	nil | ||||
| ) | ||||
|  | ||||
| @ -114,10 +114,6 @@ yl_speak_up.input_handler = function(player, formname, fields) | ||||
| 	elseif formname == "yl_speak_up:show_what_points_to_this_dialog" then | ||||
| 		yl_speak_up.input_fs_show_what_points_to_this_dialog(player, formname, fields) | ||||
| 		return true | ||||
| 	-- create and manage quests | ||||
| 	elseif formname == "yl_speak_up:quest_gui" then | ||||
| 		yl_speak_up.input_quest_gui(player, formname, fields) | ||||
| 		return true | ||||
| 	end | ||||
| end | ||||
| 
 | ||||
| @ -393,10 +389,6 @@ yl_speak_up.show_fs = function(player, fs_name, param) | ||||
| 		yl_speak_up.show_fs_ver(pname, "yl_speak_up:show_what_points_to_this_dialog", | ||||
| 			yl_speak_up.show_what_points_to_this_dialog(player, param)) | ||||
| 
 | ||||
| 	elseif(fs_name == "quest_gui") then | ||||
| 		yl_speak_up.show_fs_ver(pname, "yl_speak_up:quest_gui", | ||||
| 			yl_speak_up.get_fs_quest_gui(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