From 7ac61207f5e208d1d70871a714218465b3025d16 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:57:53 +0200 Subject: State at 2022-07-03 --- auto_yards/init_code.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'auto_yards/init_code.lua') 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 -- cgit v1.2.3