mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-07-29 16:55:49 +02:00
handle fields.finished_trading
This commit is contained in:
parent
3c79ad9491
commit
0ccbd774a1
@ -8,7 +8,8 @@ yl_speak_up.trade_fail_fs = "size[6,2]"..
|
|||||||
|
|
||||||
-- possible inputs:
|
-- possible inputs:
|
||||||
-- fields.edit_trade_simple go on to showing the add_trade_simple formspec
|
-- fields.edit_trade_simple go on to showing the add_trade_simple formspec
|
||||||
-- fields.abort_trade_simple, ESC depends on context
|
-- fields.abort_trade_simple, ESC, depends on context
|
||||||
|
-- fields.finished_trading
|
||||||
-- if in edit mode: go back to edit options dialog
|
-- if in edit mode: go back to edit options dialog
|
||||||
-- if traded at least once: go on to the target dialog
|
-- if traded at least once: go on to the target dialog
|
||||||
-- if not traded: go back to the original dialog
|
-- if not traded: go back to the original dialog
|
||||||
@ -48,7 +49,7 @@ yl_speak_up.input_do_trade_simple = function(player, formname, fields)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- go back to the main dialog
|
-- go back to the main dialog
|
||||||
if(fields.abort_trade_simple or fields.quit) then
|
if(fields.abort_trade_simple or fields.quit or fields.finished_trading) then
|
||||||
-- if in edit mode: go back to the edit options dialog
|
-- if in edit mode: go back to the edit options dialog
|
||||||
if(trade.edit_trade) then
|
if(trade.edit_trade) then
|
||||||
minetest.show_formspec(pname, "yl_speak_up:edit_option_dialog",
|
minetest.show_formspec(pname, "yl_speak_up:edit_option_dialog",
|
||||||
|
Loading…
Reference in New Issue
Block a user