C# Class OpenBve.Interface

Show file Open project: leezer3/OpenBVE Class Usage Examples

Private Methods

Method Description
AddControls ( Control &Base, Control Add ) : void
AddLanguage ( string File ) : void

Adds a language file to the available langauge list

AddMessage ( MessageType Type, bool FileNotFound, string Text ) : void
ClearMessages ( ) : void
ContainsInvalidPathChars ( string Expression ) : bool
ConvertNewlinesToCrLf ( string Text ) : string
ExportBlackBox ( string File, BlackBoxFormat Format ) : void

Exports the current black box data to a file

ExportScore ( string File ) : void

Exports the current score data to a file

GetBlackBoxText ( Game EventToken ) : string

Gets the formatted output text for a black box event token

GetScoreText ( Game TextToken ) : string

Gets the formatted text for an in-game score event

IsJapanese ( string Name ) : bool
LoadControls ( string FileOrNull, Control &Controls ) : void

Loads the current controls from the controls.cfg file

LoadHUD ( ) : void
LoadLanguage ( string File ) : void

Loads a translation from a language file

LoadLogs ( ) : void

Loads the black-box logs from the previous simulation run

LoadOptions ( ) : void

Loads the options file from disk

RoundToPowerOfTwo ( int Value ) : int
SaveControls ( string FileOrNull ) : void

Saves the current control configuration

SaveLogs ( ) : void

Saves the current in-game black box log

SaveOptions ( ) : void
SecurityToVirtualKey ( Command cmd ) : VirtualKeys

Converts the specified security command to a virtual key.

TrimInside ( string Expression ) : string
TryGetCommandInfo ( Command Value, CommandInfo &Info ) : bool
TryParseByteVb6 ( string Expression, byte &Value ) : bool
TryParseDouble ( string Expression, double UnitFactors, double &Value ) : bool
TryParseDoubleVb6 ( string Expression, double &Value ) : bool
TryParseDoubleVb6 ( string Expression, double UnitFactors, double &Value ) : bool
TryParseFloatVb6 ( string Expression, float &Value ) : bool
TryParseHexColor ( string Expression, Color24 &Color ) : bool

Parses a hexadecimal string into a Color24

TryParseHexColor ( string Expression, Color32 &Color ) : bool

Parses a hexadecimal string into a Color32

TryParseHexColor ( string Expression, World &Color ) : bool
TryParseIntVb6 ( string Expression, int &Value ) : bool
TryParseTime ( string Expression, double &Value ) : bool
Unescape ( string Text ) : string