Can disable automatic working without cancelling route
This commit is contained in:
parent
3ce98cae9a
commit
c180582f3d
@ -561,6 +561,7 @@ function advtrains.interlocking.show_signalling_form(sigd, pname, sel_rte)
|
||||
else
|
||||
form = form.."label[0.5,7 ;Automatic Working is active.]"
|
||||
form = form.."label[0.5,7.3;Route is re-set when a train passed.]"
|
||||
form = form.."button[0.5,7.7; 5,1;noauto;Disable Automatic Working]"
|
||||
end
|
||||
|
||||
form = form.."button[0.5,6; 5,1;cancelroute;Cancel Route]"
|
||||
@ -694,6 +695,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if fields.auto then
|
||||
tcbs.route_auto = true
|
||||
end
|
||||
if fields.noauto then
|
||||
tcbs.route_auto = false
|
||||
end
|
||||
|
||||
advtrains.interlocking.show_signalling_form(sigd, pname, sel_rte)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user