메소드 | 설명 | |
---|---|---|
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 |
리턴 | 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 |
리턴 | 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 |
리턴 | void |
public static FormatML ( MString format, MString arg ) : string | ||
format | MString | |
arg | MString | |
리턴 | string |
public static ParseBoolStr ( string value ) : bool | ||
value | string | Value |
리턴 | bool |
public static ParseBoolStr ( string value, bool defaultValue ) : bool | ||
value | string | Value |
defaultValue | bool | Default value |
리턴 | bool |
public static ParseFloat ( string value ) : float | ||
value | string | Value |
리턴 | float |
public static ParseNullableBool ( string value ) : bool? | ||
value | string | Value |
리턴 | bool? |
public static PlaySound ( string sound, string soundSet ) : void | ||
sound | string | Sound name |
soundSet | string | Sound set name |
리턴 | 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 |
리턴 | string |
public static ShowNotificationAboveMap ( MString message ) : void | ||
message | MString | Message to show |
리턴 | void |