C# 클래스 GTAVBETrainerDotNet.Utils

Utilities
파일 보기 프로젝트 열기: betenner/betrainer

공개 메소드들

메소드 설명
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

메소드 상세

CTML() 공개 정적인 메소드

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
리턴 MString

DrawRect() 공개 정적인 메소드

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
리턴 void

DrawText() 공개 정적인 메소드

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
리턴 void

FormatML() 공개 정적인 메소드

public static FormatML ( MString format ) : string
format MString
리턴 string

FormatML() 공개 정적인 메소드

public static FormatML ( MString format, MString arg ) : string
format MString
arg MString
리턴 string

ML() 공개 정적인 메소드

Gets the string with current language code.
public static ML ( MString str ) : string
str MString Multi-string
리턴 string

ParseBool() 공개 정적인 메소드

Parses a boolean value
public static ParseBool ( string value ) : bool
value string Value
리턴 bool

ParseBoolStr() 공개 정적인 메소드

Parses a boolean string value
public static ParseBoolStr ( string value ) : bool
value string Value
리턴 bool

ParseBoolStr() 공개 정적인 메소드

Parses a boolean string value
public static ParseBoolStr ( string value, bool defaultValue ) : bool
value string Value
defaultValue bool Default value
리턴 bool

ParseFloat() 공개 정적인 메소드

Parses an float value
public static ParseFloat ( string value ) : float
value string Value
리턴 float

ParseInt() 공개 정적인 메소드

Parses an int value
public static ParseInt ( string value ) : int
value string Value
리턴 int

ParseKey() 공개 정적인 메소드

Parses a key
public static ParseKey ( string value ) : Keys
value string Value
리턴 Keys

ParseNullableBool() 공개 정적인 메소드

Parses a nullable boolean value
public static ParseNullableBool ( string value ) : bool?
value string Value
리턴 bool?

PlaySound() 공개 정적인 메소드

Play a sound
public static PlaySound ( string sound, string soundSet ) : void
sound string Sound name
soundSet string Sound set name
리턴 void

ShowInGameKeyboard() 공개 정적인 메소드

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
리턴 string

ShowNotificationAboveMap() 공개 정적인 메소드

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