{macro:IAnz_init}
3 (S.L.CTI_Innenanzeige)
"" (S.$.Innenanzeige_Lawo)
"..\..\Urbino_II\texture\SU_II_Infotainment.dds" (S.$.SU_II_TFT)
"" (S.$.Infotainment_HST) (S.$.Infotainment_HST_5) (S.$.Infotainment_HST_4) (S.$.Infotainment_HST_3) (S.$.Infotainment_HST_2) (S.$.Infotainment_HST)
"" (S.$.Abstand)

{end}

{macro:IAnz_frame}

(L.L.AI) !
{if}
	0 (S.L.KI-Mode)

	(L.L.elec_busbar_main)
	{if}
		
		(L.L.CTI_Innenanzeige) 3 =
		{if}
			(L.L.Info_Boot) !
			{if}
				(L.L.Info_Boot_Timer) (L.S.Timegap) + (S.L.Info_Boot_Timer) s0
				l0 5 <
				{if}
					"..\..\Urbino_II\texture\Lawo\Boot.dds" (S.$.Infotainment_Base)
				{else}
					1 (S.L.Info_Boot)
				{endif}
			{else}
				(L.L.Stoptimer) (L.S.Timegap) + (S.L.Stoptimer)
				
				(L.L.IBIS_RouteIndex) 0 >=
				(L.L.Faremaster_RouteIndex) 0 >= ||
				{if}
					(L.L.haltewunschlampe_all)
					{if}
						(L.L.Stoptimer) 4 <
						(L.L.Stoptimer) 1 > &&
						{if}
							"..\..\Urbino_II\texture\Lawo\Base.dds" (S.$.Infotainment_Base)
						{else}
							(L.L.Stoptimer) 6 <
							(L.L.Stoptimer) 4 > &&
							{if}
								"..\..\Urbino_II\texture\Lawo\Base_Halt.dds" (S.$.Infotainment_Base)
								"" (S.$.Infotainment_HST_5)
							{else}
								(L.L.Stoptimer) 6 >
								{if}
									0 (S.L.Stoptimer)
								{endif}
							{endif}
						{endif}
					{else}
						"..\..\Urbino_II\texture\Lawo\Base.dds" (S.$.Infotainment_Base)
					{endif}	
					(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) (L.L.IBIS_busstop) - s0
				
					l0 4 >=
					{if}	
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST)
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST_2)
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST_3)
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 3 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 3 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST_4)
					{endif}
					l0 3 =
					{if}							
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST)
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST_2)
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST_3)
						" " (S.$.Infotainment_HST_4)
					{endif}
					l0 2 =
					{if}							
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST)
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST_2)
						" " (S.$.Infotainment_HST_3)
						" " (S.$.Infotainment_HST_4)
					{endif}
					l0 1 =
					{if}							
						(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.Infotainment_HST)
						" " (S.$.Infotainment_HST_2)
						" " (S.$.Infotainment_HST_3)
						" " (S.$.Infotainment_HST_4)
					{endif}
					
				{else}

					"" (S.$.Infotainment_HST_5) (S.$.Infotainment_HST_4) (S.$.Infotainment_HST_3) (S.$.Infotainment_HST_2) (S.$.Infotainment_HST)
				{endif}
				(L.S.Day) "02" $IntToStrEnh "." $+ (L.S.Month) "02" $IntToStrEnh $+ "." $+ (L.S.Year) $IntToStr $+
				"@" $+ (L.$.Uhrzeit) $+
				(S.$.Infotainment_Kopfzeile)
					
				(L.L.haltewunschlampe_all)
				{if}				
					(L.L.Stoptimer) 4 <
					(L.L.Stoptimer) 0 > &&
					{if}
						"DD-Mod\Urbino_II\Lawo\Base_Hst.dds" (S.$.Infotainment_Base) (M.V.GetTerminusString) $+ (S.$.Infotainment_HST_5)
						(L.$.Abstand) (L.L.IBIS_TerminusIndex) 5 (M.V.GetTerminusString) $+ (L.$.IAZ_Terminus_Buffer) $+ (S.$.Infotainment_HST_5)
					{else}
						(L.L.Stoptimer) 4 >
						(L.L.Stoptimer) 6 < &&
						{if}
							"..\..\Urbino_II\texture\Lawo\Base_Hst_Halt.dds" (S.$.Infotainment_Base)
							"" (S.$.Infotainment_HST_5)
						{else}
							(L.L.Stoptimer) 6 >
							{if}
								0 (S.L.Stoptimer)
							{endif}
						{endif}
					{endif}
				{else}
					"DD-Mod\Urbino_II\Lawo\Base_Hst.dds" (S.$.Infotainment_Base)
					(M.V.GetTerminusString) $+ (S.$.Infotainment_HST_5)
					(L.$.Abstand) (L.L.IBIS_TerminusIndex) 5 (M.V.GetTerminusString) $+ (L.$.IAZ_Terminus_Buffer) $+ (S.$.Infotainment_HST_5)	
				{endif}			
			{endif}
			
	(L.$.Infotainment_HST_5) "     > Leerfeld" $=
	{if}
		"     > " (S.$.Infotainment_HST_5)
	{endif}			 
	 
	 
'####################################################################################################################################
'### Hier wird der Abstand in der letzten Zeile der Innenanzeige (Kombi aus Liniennummer und Endhaltestelle) immer gleichgehalten ###
'####################################################################################################################################

		(L.$.Matrix_Linie) $length 0 =
		{if}
			"     > " (S.$.Abstand)
		{endif}

		(L.$.Matrix_Linie) $length 1 =
		{if}
			"  " (L.$.Matrix_Linie) $+ "  > " $+ (S.$.Abstand)

		{endif}

		(L.$.Matrix_Linie) $length 2 =
		{if}
			" " (L.$.Matrix_Linie) $+ "  > " $+ (S.$.Abstand)
		{endif}

		(L.$.Matrix_Linie) $length 3 =
		{if}
			(L.$.Matrix_Linie) "  > " $+ (S.$.Abstand)
		{endif}

		(L.$.Matrix_Linie) $length 3 >
		{if}
			(L.$.Matrix_Linie) " > " $+ (S.$.Abstand)
		{endif}

'####################################################################################################################################

		{else}
			" " (S.$.Infotainment_HST_5) (S.$.Infotainment_HST_4) (S.$.Infotainment_HST_3) (S.$.Infotainment_HST_2) (S.$.Infotainment_HST)
		{endif}

	{else}
	
		"..\..\Urbino_II\texture\Lawo\blk.dds" (S.$.Infotainment_Base)
		" " (S.$.Infotainment_HST) (S.$.Infotainment_HST_5) (S.$.Infotainment_HST_4) (S.$.Infotainment_HST_3) (S.$.Infotainment_HST_2) (S.$.Infotainment_HST)
		0 (S.L.Info_Boot) (S.L.Info_Boot_Timer) (S.L.Stoptimer)
	{endif}
{else}
	1 (S.L.KI-Mode)
{endif}
		
{end}