Method | 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, |
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
|
public static CTML ( string defaultString, string chineseTraditional ) : MString | ||
defaultString | string | Default string |
chineseTraditional | string | Chinese triditional string |
return | MString |
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 |
return | void |
public static DrawText ( MString text, int x, int y, |
||
text | MString | Text to drawn |
x | int | X position in pixel |
y | int | Y position in pixel |
align | 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 |
return | void |
public static FormatML ( MString format ) : string | ||
format | MString | |
return | string |
public static FormatML ( MString format, MString arg ) : string | ||
format | MString | |
arg | MString | |
return | string |
public static ML ( MString str ) : string | ||
str | MString | Multi-string |
return | string |
public static ParseBool ( string value ) : bool | ||
value | string | Value |
return | bool |
public static ParseBoolStr ( string value ) : bool | ||
value | string | Value |
return | bool |
public static ParseBoolStr ( string value, bool defaultValue ) : bool | ||
value | string | Value |
defaultValue | bool | Default value |
return | bool |
public static ParseFloat ( string value ) : float | ||
value | string | Value |
return | float |
public static ParseInt ( string value ) : int | ||
value | string | Value |
return | int |
public static ParseKey ( string value ) : Keys | ||
value | string | Value |
return | Keys |
public static ParseNullableBool ( string value ) : bool? | ||
value | string | Value |
return | bool? |
public static PlaySound ( string sound, string soundSet ) : void | ||
sound | string | Sound name |
soundSet | string | Sound set name |
return | void |
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 |
return | string |
public static ShowNotificationAboveMap ( MString message ) : void | ||
message | MString | Message to show |
return | void |