forked from your-land-mirror/yl_speak_up
removed obsolete code
This commit is contained in:
parent
7045842359
commit
2290f9d463
@ -42,27 +42,7 @@ yl_speak_up.input_edit_option_dialog = function(player, formname, fields)
|
||||
yl_speak_up.show_fs(player, "talk", {n_id = n_id, d_id = d_id})
|
||||
return
|
||||
end
|
||||
--[[ -- TODO
|
||||
-- for now, there's only trade as action
|
||||
if(fields.table_of_actions) then
|
||||
local trade_id = tostring(d_id).." "..tostring(o_id)
|
||||
if(dialog.trades and dialog.trades[ trade_id ]) then
|
||||
fields.effect_show_trade = true
|
||||
else
|
||||
fields.effect_add_trade = true
|
||||
end
|
||||
end
|
||||
|
||||
-- add or edit the trade associated with this dialog and option
|
||||
if(fields.effect_add_trade) then
|
||||
-- remember which option was selected
|
||||
yl_speak_up.speak_to[pname].o_id = o_id
|
||||
-- do not switch target dialog (we are in edit mode)
|
||||
yl_speak_up.speak_to[pname].target_d_id = nil
|
||||
-- create a new trade for this dialog and option - with ID "<d_id> <o_id>"
|
||||
yl_speak_up.show_fs(player, "add_trade_simple", tostring(d_id).." "..tostring(o_id))
|
||||
return
|
||||
--]]
|
||||
-- the player wants to see the previous option/answer
|
||||
if(fields.edit_option_prev) then
|
||||
-- sort all options by o_sort
|
||||
|
Loading…
Reference in New Issue
Block a user