is there a way to strip colors from anything?
like Strip( GetCurrentPlayerVar("NickName") );
+-------------------------------+
|Changes from v5.923 to 5.924 |
+-------------------------------+
Files to replace From the previous version
- LFSLapper.exe
- Add event OnChangePos in LFSLapper.lpr or replace LFSLapper.lpr
1. Fixed bug in setuserstoredvalue when not used in player event
2. Fixed bug in getuserstorednum when not used in player event
3. Fixed bug in getuserstoredvalue when not used in player event
4. Fixed bug in privmsg when not used in player event
5. Add new LFSLapper function StripLFSColor to remove all color and lang char in string
$var = StripLFSColor("^7toto^8tata");
6. Add new Event OnChangePos triggered when player change his position in race or qual
Event OnChangePos($userName,$lastPos,$currPos)
...
EndEvent
+-------------------------------+
|Changes from v5.924 to 5.925 |
+-------------------------------+
Files to replace From the previous version
- LFSLapper.exe
1. Add new function to open private button for another player
Syntax :
openButton( username, idOfButton, left, top, width, height, interline, secondDisplayed, style, text[,optional_backCall] );
2. Add new function to close private button for another player
Syntax :
closeButton( username, idOfButton );
3 - Add new command openTextButton, to open a button who query an input string for a specified player
openTextButton( "username","ref2",103,140,20,10,10,32,"Caption","Toto",30,saisTxt );
Open a button for the current player, args are
1 - UserName of the player who want open a text button
2 - Unique id for this button
3 - Left coordinate for this button ( 0-200 )
$origL = (value between 0-200); - when this value is used, every next value can be made relative to this one (example: $origL + 5;)
4 - Top coordinate for this button ( 0-200 )
$origT = (value between 0-200); - when this value is used, every next value can be made relative to this one (example: $origT + 5;)
5 - Width of the button ( 0-200 )
6 - Heigth of the button ( 0-200 )
7 - Space between line in multiline button
8 - Format of the button, look at insim.txt for values
9 - Caption displayed in the input box
10 - Button Text
11 - Number char to be input
12 - Backcalled sub
Backcalled function receive 2 args
first = idOfButton
Second = Text
Example of called subroutine
Sub goto_sub( $id,$text )
WriteLine( $id );
EndSub
2. Add new function to close private button for another player
Syntax :
closeButton( username, idOfButton );
3 - Add new command openTextButton, to open a button who query an input string for a specified player
openTextButton( "username","ref2",103,140,20,10,10,32,"Caption","Toto",30,saisTxt );