# OBSOLETO - OUTDATED

# Segnale specifico di protezione di un PL, da piazzare come avviso del segnale di
# controllo delle sbarre; deve essere preceduto dal relativo avviso.
#
# Aspetti: R (open), V (closed)

# Level crossing home signal, to be placed as a distant of the gates position indicator
# (see the instructions). It should be preceded by a level crossing distant.
#
# Aspects: R (open), G (closed)

# P.Rosati  1/12/2013

Aspect: open
	IconE: LQ_r_E.xpm
	IconW: LQ_r_W.xpm
	IconN: LQ_r_N.xpm
	IconS: LQ_r_S.xpm
	Action: none

Aspect: closed
	IconE: LQ_g_E.xpm
	IconW: LQ_g_W.xpm
	IconN: LQ_g_N.xpm
	IconS: LQ_g_S.xpm
	Action: none

# initial aspect

OnInit:
	.aspect = open
end

# the player or a script cleared the signal

OnCleared:
	return
end

# this or another signal changed its aspect

OnUpdate:
	if next.aspect = closed
		.aspect = closed
	else
		.aspect = open
	end
end
