show_fs: npc_list
This commit is contained in:
parent
b2fb83d046
commit
e27809d4d7
@ -261,5 +261,14 @@ yl_speak_up.get_fs_show_npc_list = function(pname, selected_row)
|
||||
end
|
||||
|
||||
|
||||
yl_speak_up.register_fs("npc_list",
|
||||
yl_speak_up.input_npc_list,
|
||||
yl_speak_up.get_fs_npc_list,
|
||||
-- no special formspec required:
|
||||
nil
|
||||
)
|
||||
|
||||
|
||||
-- at load/reload of the mod: read the list of existing NPC
|
||||
yl_speak_up.npc_list_load()
|
||||
|
||||
|
@ -60,9 +60,6 @@ yl_speak_up.input_handler = function(player, formname, fields)
|
||||
elseif formname == "yl_speak_up:add_trade_simple" then
|
||||
yl_speak_up.input_add_trade_simple(player, formname, fields)
|
||||
return true
|
||||
elseif formname == "yl_speak_up:show_npc_list" then
|
||||
yl_speak_up.input_show_npc_list(player, formname, fields)
|
||||
return true
|
||||
-- handled in fs_initial_config.lua
|
||||
elseif formname == "yl_speak_up:initial_config" then
|
||||
yl_speak_up.input_fs_initial_config(player, formname, fields)
|
||||
@ -259,11 +256,6 @@ yl_speak_up.show_fs = function(player, fs_name, param)
|
||||
yl_speak_up.show_fs_ver(pname, "yl_speak_up:add_trade_simple",
|
||||
yl_speak_up.get_fs_add_trade_simple(player, param), 1)
|
||||
|
||||
elseif(fs_name == "show_npc_list") then
|
||||
yl_speak_up.show_fs_ver(pname, "yl_speak_up:show_npc_list",
|
||||
yl_speak_up.get_fs_show_npc_list(player, nil))
|
||||
|
||||
|
||||
elseif(fs_name == "initial_config") then
|
||||
if(not(param)) then
|
||||
param = {}
|
||||
|
Loading…
Reference in New Issue
Block a user