lol i think i didnt change that from last time :S
anyways, Thanks For your help
anyways, Thanks For your help
Event OnResult( $flagConfirm )
# writeline ( langEngine( "%{main_on_result}%" ,GetCurrentPlayerVar("FinishedPos")));
$WinnerName = GetCurrentPlayerVar("NickName");
IF( GetCurrentPlayerVar( "FinishedPos" ) == "1" )
THEN
openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
openGlobalButton( "number_1",67,137,10,32,3,10,16,"^01");
openGlobalButton( "winner_title",78,137,62,19,4,10,96,langEngine( "%{main_winnertitle}%" ));
openGlobalButton( "winner_name",78,158,58,10,3,10,64,langEngine( "%{main_winnername}%" ),$WinnerName);
openGlobalButton( "white_banner1",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner2",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner3",108,137,32,18,1,10,16," ");
openGlobalButton( "black_banner1",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner2",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner3",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner4",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner5",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner6",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner7",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner8",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner9",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner10",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner11",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner12",128,137,4,6,1,10,32," ");
openGlobalButton( "black_bannera",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerb",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerc",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerd",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannere",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerf",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerg",124,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerh",124,143,4,6,1,10,32," ");
openGlobalButton( "black_banneri",124,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerj",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerk",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerl",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannera1",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera2",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera3",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera4",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera5",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera6",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera7",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera8",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera9",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera10",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera11",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera12",128,149,4,6,1,10,32," ");
ENDIF
EndEvent
main_winnertitle = "^7Winner";
main_winnername = "^7{0}";
IF( GetCurrentPlayerVar( "FinishedPos" ) == "1" )
THEN
$WinnerName = GetCurrentPlayerVar("NickName");
openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
Event OnResult( $flagConfirm )
# writeline ( langEngine( "%{main_on_result}%" ,GetCurrentPlayerVar("FinishedPos")));
$WinnerName = GetCurrentPlayerVar("NickName");
IF( GetCurrentPlayerVar("FinishedPos") == "1" )
THEN
openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
openGlobalButton( "number_1",67,137,10,32,3,10,16,"^01");
openGlobalButton( "winner_title",78,137,62,19,4,10,96,langEngine( "%{main_winnertitle}%" ));
openGlobalButton( "winner_name",78,158,58,10,3,10,64,langEngine( "%{main_winnername}%" ,$WinnerName ));
...
ENDIF
EndEvent
main_winnertitle = "^7Winner";
main_winnername = "^7{0}";
...,langEngine( "%{main_winnername}%" [COLOR="Red"])[/COLOR],$WinnerName [COLOR="Blue"])[/COLOR]);
####################
#Overriding options#
####################
include( "./includes/addonsused.lpr");
include( "./includes/pitboard.lpr");
include( "./includes/pitwindow_gui.lpr");
include( "./includes/safetycar.lpr");
include( "./includes/ctrack.lpr");
include( "./includes/guiconfig.lpr");
include( "./includes/who.lpr");
include( "./includes/handicapper.lpr");
include( "./includes/myInc.lpr");
openPrivTextButton( "button_ID",origL,origT,$wide_button,$hight_button,5,96,"text in chat window","Text in button",$max_lenght_of_input,Goto_this_Sub );
Sub Goto_this_Sub( $myVar )
privMsg( "$myVar = " . $myVar );
EndSub
Event OnDriftScore()
$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
$DriftScore = GetCurrentPlayerVar( "DriftScore" );
$LastDriftScore = GetCurrentPlayerVar( "LastDriftScore" );
IF( $GUI_drift == "yes" )
THEN
openPrivButton( "Driftscoreboard",1,117,28,10,4,-1,16,"^0D^4R^0I^4F^0T ^4S^0C^4O^0R^4E^0B^4O^0A^4R^0D" );
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
openPrivButton( "Score",1,132,14,5,4,-1,16,"^7 Score" );
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore" ) );
openPrivButton( "Angle",15,132,14,5,4,-1,16,"^7 Angle" );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . $Angle_Reverse);
openPrivButton( "TotalScore",1,142,28,5,4,-1,16,"^7 Total Score" );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "DriftScore" ) );
IF( $AngleVelocity < 0 )
THEN
SetCurrentPlayerVar("Angle_Reverse",$AngleVelocity);
openPrivButton( "Driftscoreboard",1,117,28,10,4,-1,16,"^0D^4R^0I^4F^0T ^4S^0C^4O^0R^4E^0B^4O^0A^4R^0D" );
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
openPrivButton( "Score",1,132,14,5,4,-1,16,"^7 Score" );
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore") );
openPrivButton( "Angle",15,132,14,5,4,-1,16,"^7 Angle" );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . $Angle_Reverse);
openPrivButton( "TotalScore",1,142,28,5,4,-1,16,"^7 Total Score" );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "DriftScore") );
ELSE
openPrivButton( "Driftscoreboard",1,117,28,10,4,-1,16,"^0D^4R^0I^4F^0T ^4S^0C^4O^0R^4E^0B^4O^0A^4R^0D" );
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
openPrivButton( "Score",1,132,14,5,4,-1,16,"^7 Score" );
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore" ) );
openPrivButton( "Angle",15,132,14,5,4,-1,16,"^7 Angle" );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "AngleVelocity" ) );
openPrivButton( "TotalScore",1,142,28,5,4,-1,16,"^7 Total Score" );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore") );
ENDIF
ENDIF
EndEvent