C# Class GTAVBETrainerDotNet.Utils

Utilities
Afficher le fichier Open project: betenner/betrainer

Méthodes publiques

Méthode Description
CTML ( string defaultString, string chineseTraditional ) : MString

Generates a multi-string with a default string and a Chinese Traditional string

DrawRect ( int x, int y, int width, int height, Color color, int screenWidth = GlobalConst.DEFAULT_SCREEN_WIDTH, int screenHeight = GlobalConst.DEFAULT_SCREEN_HEIGHT ) : void

Draw a rectangle

DrawText ( MString text, int x, int y, GlobalConst align, Color color, float xScale = 0.35f, float yScale = 0.35f, GTA font = GTA.Font.ChaletLondon, Point shadowOffset = newPoint(), Color shadowColor = newColor(), int screenWidth = GlobalConst.DEFAULT_SCREEN_WIDTH, int screenHeight = GlobalConst.DEFAULT_SCREEN_HEIGHT ) : void

Draw text

FormatML ( MString format ) : string
FormatML ( MString format, MString arg ) : string
ML ( MString str ) : string

Gets the string with current language code.

ParseBool ( string value ) : bool

Parses a boolean value

ParseBoolStr ( string value ) : bool

Parses a boolean string value

ParseBoolStr ( string value, bool defaultValue ) : bool

Parses a boolean string value

ParseFloat ( string value ) : float

Parses an float value

ParseInt ( string value ) : int

Parses an int value

ParseKey ( string value ) : Keys

Parses a key

ParseNullableBool ( string value ) : bool?

Parses a nullable boolean value

PlaySound ( string sound, string soundSet ) : void

Play a sound

ShowInGameKeyboard ( string titleId = null, string prePopulatedText = null, int maxInputLength = 64 ) : string

Shows the in-game keyboard screen and gets the inputted text.

ShowNotificationAboveMap ( MString message ) : void

Shows a notification above in-game mini-map

Method Details

CTML() public static méthode

Generates a multi-string with a default string and a Chinese Traditional string
public static CTML ( string defaultString, string chineseTraditional ) : MString
defaultString string Default string
chineseTraditional string Chinese triditional string
Résultat MString

DrawRect() public static méthode

Draw a rectangle
public static DrawRect ( int x, int y, int width, int height, Color color, int screenWidth = GlobalConst.DEFAULT_SCREEN_WIDTH, int screenHeight = GlobalConst.DEFAULT_SCREEN_HEIGHT ) : void
x int X position in pixel
y int Y position in pixel
width int Width in pixel
height int Height in pixel
color Color Color
screenWidth int Screen width in pixel
screenHeight int Screen height in pixel
Résultat void

DrawText() public static méthode

Draw text
public static DrawText ( MString text, int x, int y, GlobalConst align, Color color, float xScale = 0.35f, float yScale = 0.35f, GTA font = GTA.Font.ChaletLondon, Point shadowOffset = newPoint(), Color shadowColor = newColor(), int screenWidth = GlobalConst.DEFAULT_SCREEN_WIDTH, int screenHeight = GlobalConst.DEFAULT_SCREEN_HEIGHT ) : void
text MString Text to drawn
x int X position in pixel
y int Y position in pixel
align GlobalConst Horizontal alignment
color Color Color
xScale float X Scale
yScale float Y Scale
font GTA Font
shadowOffset Point Offset of shadow
shadowColor Color Color of shadow
screenWidth int Width of screen in pixel
screenHeight int Height of screen in pixel
Résultat void

FormatML() public static méthode

public static FormatML ( MString format ) : string
format MString
Résultat string

FormatML() public static méthode

public static FormatML ( MString format, MString arg ) : string
format MString
arg MString
Résultat string

ML() public static méthode

Gets the string with current language code.
public static ML ( MString str ) : string
str MString Multi-string
Résultat string

ParseBool() public static méthode

Parses a boolean value
public static ParseBool ( string value ) : bool
value string Value
Résultat bool

ParseBoolStr() public static méthode

Parses a boolean string value
public static ParseBoolStr ( string value ) : bool
value string Value
Résultat bool

ParseBoolStr() public static méthode

Parses a boolean string value
public static ParseBoolStr ( string value, bool defaultValue ) : bool
value string Value
defaultValue bool Default value
Résultat bool

ParseFloat() public static méthode

Parses an float value
public static ParseFloat ( string value ) : float
value string Value
Résultat float

ParseInt() public static méthode

Parses an int value
public static ParseInt ( string value ) : int
value string Value
Résultat int

ParseKey() public static méthode

Parses a key
public static ParseKey ( string value ) : Keys
value string Value
Résultat Keys

ParseNullableBool() public static méthode

Parses a nullable boolean value
public static ParseNullableBool ( string value ) : bool?
value string Value
Résultat bool?

PlaySound() public static méthode

Play a sound
public static PlaySound ( string sound, string soundSet ) : void
sound string Sound name
soundSet string Sound set name
Résultat void

ShowInGameKeyboard() public static méthode

Shows the in-game keyboard screen and gets the inputted text.
public static ShowInGameKeyboard ( string titleId = null, string prePopulatedText = null, int maxInputLength = 64 ) : string
titleId string Title ID (not the title itself!)
prePopulatedText string Text shows in the input area after keyboard open
maxInputLength int Max input length
Résultat string

ShowNotificationAboveMap() public static méthode

Shows a notification above in-game mini-map
public static ShowNotificationAboveMap ( MString message ) : void
message MString Message to show
Résultat void