'by MEP - MARCOS ELIAS
'Se usar no seu onibus, coloque credito para Marcos Elias referente a este script

{macro:MEPPainelEletronico_Init}
1 (S.L.MEPANJO_Blink)
0 (S.L.MEP_PiscaLuzAnjoGuarda)
1 (S.L.peca_1)
1 (S.L.peca_2)
1 (S.L.peca_3)
1 (S.L.peca_4)
1 (S.L.peca_5)
1 (S.L.peca_6)
1 (S.L.peca_7)
1 (S.L.peca_8)
1 (S.L.peca_9)
1 (S.L.peca_10)
{end}


{macro:MEPPainelEletronico_Frame}

'1.78438 = altura do Z da colisao
(L.S.coll_pos_z) 1.72 < (S.L.MEP_TahRaspandoEmbaixo)


(L.L.Velocity) $IntToStr " km/h" $+ (S.$.MEPVelocidadeKMH)
'DESATIVADOO "Energia Rest. " (L.L.tank_percent) $IntToStr $+ (S.$.MEPPorcentagemTanque)
'DESATIVADOO(L.L.Cabinair_Temp) $IntToStr " ºC" $+ (S.$.MEPTemperaturaCabine)
'DESATIVADOO(L.L.kmcounter_km) $IntToStr " km total" $+ (S.$.MEPKmRodados)
'(L.S.Day) $IntToStr "/" $+ (L.S.Month) $IntToStr "/" $+ (L.S.Year) $IntToStr "/" $+ (L.S.Time) $IntToStr " - " $+ (S.$.MEPDataHora)

1 (S.L.Refresh_Strings)

'configura a variavel se pisca ou nao a luz
	(L.L.MEPANJO_Blink) !
		{if}
			1 (S.L.MEP_PiscaLuzAnjoGuarda)
		{else}
			0 (S.L.MEP_PiscaLuzAnjoGuarda)
		{endif}	
'configura o temporizador
(L.L.MEPANJO_BlinkTimer) 0.5 <
		{if}					
			(L.S.Timegap) (L.L.MEPANJO_BlinkTimer) + (S.L.MEPANJO_BlinkTimer) 										
		{else}
			0 (S.L.MEPANJO_BlinkTimer) 	
			(L.L.MEPANJO_Blink) ! (S.L.MEPANJO_Blink)				
		{endif}			

{end}


{trigger:peca_1}
	(L.L.peca_1) ! (S.L.peca_1)
	(T.L.ev_peca_1)
{end}


{trigger:peca_2}
	(L.L.peca_2) ! (S.L.peca_2)
	(T.L.ev_peca_2)
{end}


{trigger:peca_3}
	(L.L.peca_3) ! (S.L.peca_3)
	(T.L.ev_peca_3)
{end}

{trigger:peca_4}
	(L.L.peca_4) ! (S.L.peca_4)
	(T.L.ev_peca_4)
{end}

{trigger:peca_5}
	(L.L.peca_5) ! (S.L.peca_5)
	(T.L.ev_peca_5)
{end}

{trigger:peca_6}
	(L.L.peca_6) ! (S.L.peca_6)
	(T.L.ev_peca_6)
{end}

{trigger:peca_7}
	(L.L.peca_7) ! (S.L.peca_7)
	(T.L.ev_peca_7)
{end}

{trigger:peca_8}
	(L.L.peca_8) ! (S.L.peca_8)
	(T.L.ev_peca_8)
{end}

{trigger:peca_9}
	(L.L.peca_9) ! (S.L.peca_9)
	(T.L.ev_peca_9)
{end}

{trigger:peca_10}
	(L.L.peca_10) ! (S.L.peca_10)
	(T.L.ev_peca_10)
{end}

{trigger:peca_11}
	(L.L.peca_11) ! (S.L.peca_11)
	(T.L.ev_peca_11)
{end}

{trigger:peca_12}
	(L.L.peca_12) ! (S.L.peca_12)
	(T.L.ev_peca_12)
{end}


{trigger:peca_13}
	(L.L.peca_13) ! (S.L.peca_13)
	(T.L.ev_peca_13)
{end}

{trigger:peca_14}
	(L.L.peca_14) ! (S.L.peca_14)
	(T.L.ev_peca_14)
{end}

