diff options
author | orwell <orwell@bleipb.de> | 2024-11-14 00:03:38 +0100 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-11-14 00:03:38 +0100 |
commit | fe57e7dd089653e2361a4ebb0b34137a3261e198 (patch) | |
tree | 0bc1be5e530f6a7af857b8cefe29c1da5ae29b8b /advtrains_interlocking/route_ui.lua | |
parent | d42f1bcf1a7ec18d392671be54636e7cad8b788b (diff) | |
download | advtrains-fe57e7dd089653e2361a4ebb0b34137a3261e198.tar.gz advtrains-fe57e7dd089653e2361a4ebb0b34137a3261e198.tar.bz2 advtrains-fe57e7dd089653e2361a4ebb0b34137a3261e198.zip |
Add Blocksignal mode for signals to autocreate simple block route
Diffstat (limited to 'advtrains_interlocking/route_ui.lua')
-rw-r--r-- | advtrains_interlocking/route_ui.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains_interlocking/route_ui.lua b/advtrains_interlocking/route_ui.lua index 89580a8..2b79f68 100644 --- a/advtrains_interlocking/route_ui.lua +++ b/advtrains_interlocking/route_ui.lua @@ -110,7 +110,7 @@ function atil.show_route_edit_form(pname, sigd, routeid) form = form.."button[2.5,6;1,1;next;>>>]" - if route.smartroute_generated then + if route.smartroute_generated or route.default_autoworking then form = form.."button[3.5,6;2,1;noautogen;Clr Autogen]" end form = form.."button[5.5,6;3,1;delete;Delete Route]" @@ -180,6 +180,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if fields.noautogen then route.smartroute_generated = nil + route.default_autoworking = nil end if fields.delete then |