# Segnale comune a più binari con due vele tonde e triangolo, seguito
# da qualsiasi segnale. É un segnale di avviso da piazzare a valle del-
# la confluenza, e deve essere seguito da una stazione fittizia 'G' se
# seguito da un altro avviso. I binari che hanno questo segnale in co-
# mune sono dotati di segnale basso di partenza, e quello aperto è re-
# plicato da questo. Sono loro a impostare l'aspetto di questo segnale,
# che permette loro di simulare solo segnali a 1 o 2 vele con triangolo.
#
# Aspetti:			   R, S, G, Gx, V, GG, GV, GxVx, Gx/Vx, off (spento)
# da considerare come: R, S, RG, RGx, RV, RGG, RGV, RGxVx, RGx/Vx, off

# Exit signal with 2 round heads and a triangle below, shared by 2 or more
# tracks and followed by whatever signal. It's actually a distant, to be
# placed after the confluence and to be followed by a fake 'G' station
# when followed by another distant. All the tracks that share this signal
# have their own departure dwarf, and this signal replicates the one that
# is clear. The departure dwarfs set the aspect of this signal, that allows
# them to simulate only 1 or 2 head exit signals with a triangle below.
#
# Aspects:			R, S, Y, Yx, G, YY, YG, YxGx, Yx/Gx, off
# to be "seen" as   R, S, RY, RYx, RG, RYY, RYG, RYxGx, RYx/Gx, off

# P.Rosati  21/01/2021 (Versione 5.1)

Aspect: red
	IconE: TN_rb_E.xpm
	IconW: TN_rb_W.xpm
	IconN: TN_rb_N.xpm
	IconS: TN_rb_S.xpm
	Action: none

Aspect: shunt
	IconE: TN_rb_E.xpm
	IconW: TN_rb_W.xpm
	IconN: TN_rb_N.xpm
	IconS: TN_rb_S.xpm
	Action: none

Aspect: red_yellow_yellow
	IconE: TN_yy_E.xpm
	IconW: TN_yy_W.xpm
	IconN: TN_yy_N.xpm
	IconS: TN_yy_S.xpm
	Action: none

Aspect: red_green_30
	IconE: TN_gb_E.xpm
	IconW: TN_gb_W.xpm
	IconN: TN_gb_N.xpm
	IconS: TN_gb_S.xpm
	Action: none

Aspect: red_yellow_30
	IconE: TN_yb_E.xpm
	IconW: TN_yb_W.xpm
	IconN: TN_yb_N.xpm
	IconS: TN_yb_S.xpm
	Action: none

Aspect: red_yellow_flashing_30
	IconE: TN_yb_E.xpm TN_bb_E.xpm
	IconW: TN_yb_W.xpm TN_bb_W.xpm
	IconN: TN_yb_N.xpm TN_bb_N.xpm
	IconS: TN_yb_S.xpm TN_bb_S.xpm
	Action: none

Aspect: red_yellow_green_30
	IconE: TN_yg_E.xpm
	IconW: TN_yg_W.xpm
	IconN: TN_yg_N.xpm
	IconS: TN_yg_S.xpm
	Action: none

Aspect: red_yellow_green_flashing_30
	IconE: TN_yg_E.xpm TN_bb_E.xpm
	IconW: TN_yg_W.xpm TN_bb_W.xpm
	IconN: TN_yg_N.xpm TN_bb_N.xpm
	IconS: TN_yg_S.xpm TN_bb_S.xpm
	Action: none

Aspect: red_yellow_green_switching_30
	IconE: TN_yb_E.xpm TN_bg_E.xpm
	IconW: TN_yb_W.xpm TN_bg_W.xpm
	IconN: TN_yb_N.xpm TN_bg_N.xpm
	IconS: TN_yb_S.xpm TN_bg_S.xpm
	Action: none

Aspect: red_green_60
	IconE: TN_gb_E.xpm
	IconW: TN_gb_W.xpm
	IconN: TN_gb_N.xpm
	IconS: TN_gb_S.xpm
	Action: none

Aspect: red_yellow_60
	IconE: TN_yb_E.xpm
	IconW: TN_yb_W.xpm
	IconN: TN_yb_N.xpm
	IconS: TN_yb_S.xpm
	Action: none

Aspect: red_yellow_flashing_60
	IconE: TN_yb_E.xpm TN_bb_E.xpm
	IconW: TN_yb_W.xpm TN_bb_W.xpm
	IconN: TN_yb_N.xpm TN_bb_N.xpm
	IconS: TN_yb_S.xpm TN_bb_S.xpm
	Action: none

Aspect: red_yellow_green_60
	IconE: TN_yg_E.xpm
	IconW: TN_yg_W.xpm
	IconN: TN_yg_N.xpm
	IconS: TN_yg_S.xpm
	Action: none

Aspect: red_yellow_green_flashing_60
	IconE: TN_yg_E.xpm TN_bb_E.xpm
	IconW: TN_yg_W.xpm TN_bb_W.xpm
	IconN: TN_yg_N.xpm TN_bb_N.xpm
	IconS: TN_yg_S.xpm TN_bb_S.xpm
	Action: none

Aspect: red_yellow_green_switching_60
	IconE: TN_yb_E.xpm TN_bg_E.xpm
	IconW: TN_yb_W.xpm TN_bg_W.xpm
	IconN: TN_yb_N.xpm TN_bg_N.xpm
	IconS: TN_yb_S.xpm TN_bg_S.xpm
	Action: none

Aspect: off
	IconE: TN_bb_E.xpm
	IconW: TN_bb_W.xpm
	IconN: TN_bb_N.xpm
	IconS: TN_bb_S.xpm
	Action: none

# initial aspect

OnInit:
	.aspect = red
end

# the player or a script cleared the signal

OnCleared:
	return
end

# this or another signal changed its aspect

OnUpdate:
	return
end

# a train passed the signal

OnCross:
	.aspect = red
end
