diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:57:53 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:57:53 +0200 |
commit | 7ac61207f5e208d1d70871a714218465b3025d16 (patch) | |
tree | 93d95ec02df16419ea5e09b7ec3b1adc1018984e /auto_yards/init_code.lua | |
parent | 8fa52d91d54f9b55272b872434fa2add447a0da2 (diff) | |
download | luaatc_envs-7ac61207f5e208d1d70871a714218465b3025d16.tar.gz luaatc_envs-7ac61207f5e208d1d70871a714218465b3025d16.tar.bz2 luaatc_envs-7ac61207f5e208d1d70871a714218465b3025d16.zip |
State at 2022-07-03
Diffstat (limited to 'auto_yards/init_code.lua')
-rw-r--r-- | auto_yards/init_code.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/auto_yards/init_code.lua b/auto_yards/init_code.lua index 595caa2..4a66f6e 100644 --- a/auto_yards/init_code.lua +++ b/auto_yards/init_code.lua @@ -19,9 +19,6 @@ if event.init then error_indicator_pos = POS(-4025,13,-2671), headshunt_max = 5, - --temporary while testing - notify = {}, - notify_pos = POS(-2006,3,-1099) }, BY = { active_indicator_pos = POS(-2002,3,-1099), @@ -29,7 +26,7 @@ if event.init then error_indicator_pos = POS(-1999,3,-1099), headshunt_max = 5, notify = {}, - notify_pos = POS(-2006,3,-1099) + notify_pos = POS(-2004,2,-1101) }, IP = { active_indicator_pos = POS(1179,16,3848), @@ -37,9 +34,6 @@ if event.init then error_indicator_pos = POS(1179,16,3850), headshunt_max = 5, - --temporary while testing - notify = {}, - notify_pos = POS(-2006,3,-1099) }, -- HY = { -- active_indicator_pos = POS(-4025,14,-2659), @@ -370,8 +364,11 @@ F.headshunt_exit = function(yard_id,this_dir) -- arrow points out of yard F.remove_rc_match(yard_id.."_LOCOS_%d+") F.remove_rc_match(yard_id.."_WAGONS_%d+") - if yard.notify_pos and yard.notify then + if yard.notify_pos then interrupt_pos(yard.notify_pos,"notify") + print("init notifications") + else + print("No notification panel configured") end if F.has_rc(yard_id.."_HAS_RTS") then --reinsert the RTS flag to fully return RC list to starting |