forked from your-land-mirror/yl_speak_up
show_fs: assign_quest_step
This commit is contained in:
parent
92d3622464
commit
063aa7e297
@ -333,3 +333,11 @@ yl_speak_up.get_fs_assign_quest_step = function(player, param)
|
||||
table.insert(formspec, show_until)
|
||||
return table.concat(formspec, " ")
|
||||
end
|
||||
|
||||
|
||||
yl_speak_up.register_fs("assign_quest_step",
|
||||
yl_speak_up.input_assign_quest_step,
|
||||
yl_speak_up.get_fs_assign_quest_step,
|
||||
-- no special formspec required:
|
||||
nil
|
||||
)
|
||||
|
@ -94,10 +94,6 @@ yl_speak_up.input_handler = function(player, formname, fields)
|
||||
elseif formname == "yl_speak_up:initial_config" then
|
||||
yl_speak_up.input_fs_initial_config(player, formname, fields)
|
||||
return true
|
||||
-- handled in fs_assign_quest_step.lua
|
||||
elseif formname == "yl_speak_up:assign_quest_step" then
|
||||
yl_speak_up.input_fs_assign_quest_step(player, formname, fields)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@ -353,10 +349,6 @@ yl_speak_up.show_fs = function(player, fs_name, param)
|
||||
yl_speak_up.get_fs_initial_config(player, param.n_id, param.d_id,
|
||||
param.is_initial_config))
|
||||
|
||||
elseif(fs_name == "assign_quest_step") then
|
||||
yl_speak_up.show_fs_ver(pname, "yl_speak_up:assign_quest_step",
|
||||
yl_speak_up.get_fs_assign_quest_step(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