文本格式
游戏 UI 中显示的文本标签可以使用经典R星风格的~
格式化标签进行格式化,详情如下。
R星格式化代码
R星格式代码通常位于两个波浪号 (~
) 之间,示例如下:
[MY_LABEL]
摧毁~r~敌人。
[MY_HELP_LABEL]
靠近~r~敌人~w~时按~INPUT_CONTEXT~。
颜色代码
null | 标签 | 描述 | 示例 |
---|---|---|---|
~HUD_COLOUR_...~ |
引用现有的 HUD 颜色。 | Find the ~HUD_COLOUR_FREEMODE~freemode ped! |
|
~HC_...~ |
~HUD_COLOUR 的别名 | Find the ~HC_FREEMODE~freemode ped! |
|
~HC_[number]~ |
按索引ID指定 HUD 颜色。 | Get to ~HC_13~Davis. |
|
~s~ |
将颜色重置为当前上下文的默认值。 | After killing the ~r~enemies~s~, you win! |
|
~v~ |
HUD_COLOUR_SCRIPT_VARIABLE This is a placeholder for the color set with SET_SCRIPT_VARIABLE_HUD_COLOUR. |
Wait for your ~v~team~s~ to lose the Cops. |
|
~u~ |
HUD_COLOUR_SCRIPT_VARIABLE_2 This is a placeholder for the color set with _SET_SCRIPT_VARIABLE_2_HUD_COLOUR. |
Take out ~v~~a~~s~ & defend ~u~~a~~s~. |
|
~w~ |
HUD_COLOUR_WHITE Used together with ~s~ to reset text color. |
Swoop on over to ~b~foreclosures.maze-bank.com~w~~s~ today |
|
Color | Label | Description | Example |
~r~ |
HUD_COLOUR_RED Used for enemy characters or vehicles. |
Kill all the ~r~Vagos. |
|
~g~ |
HUD_COLOUR_GREEN Used for pickup-type objectives. |
Pick up the ~g~flash drive. |
|
~b~ |
HUD_COLOUR_BLUE Used for friendly characters or vehicles. |
Defend ~b~Lamar. |
|
~f~ |
HUD_COLOUR_FRIENDLY An alternate (rare) version for friendly objectives. |
Vehicle health can be restored by waiting in the ~f~pit stop area~s~. |
|
~y~ |
HUD_COLOUR_YELLOW Destination names. |
Deliver the Special Cargo to the ~y~restricted area. |
|
~c~ |
HUD_COLOUR_MENU_GREY De-emphasized text used in subtitles, to indicate a character out of view. |
~z~He's a bum! ~c~~n~Oh my God! |
|
~t~ |
HUD_COLOUR_MENU_GREY De-emphasized text used in subtitles, to indicate text spoken in a different language. |
~z~those ~t~idiots. |
|
~o~ |
HUD_COLOUR_ORANGE A team color indicator. |
~o~The Cocks~s~ are mad. |
|
~p~ |
HUD_COLOUR_PURPLE A team color indicator. |
~p~The Boars~s~ are off the radar. |
|
~q~ |
HUD_COLOUR_PINK Used for Arena War. |
You are the active contender on your ~q~team~s~. |
|
~m~ |
HUD_COLOUR_MID_GREY_MP Medium gray to de-emphasize or use for 'Silver'. |
~m~Display Mini Map. |
|
~l~ |
HUD_COLOUR_BLACK Used when unable to set a color any other way to specify black. |
~l~PLAYERS |
|
~d~ |
HUD_COLOUR_BLUEDARK Used to specify a team objective occupied by a player. |
Help your team deliver a ~d~vehicle ~s~to your ~b~base. |
Visual formatting codes
Label | Description | Example |
---|---|---|
~n~ |
A line break, similar to <br> in HTML. | This text is~n~on two lines. |
~h~ |
Bold text. Use a second time to unbold. |
This is ~h~quite bold~h~ of you. |
~bold~ |
An alias of ~h~ . |
This is also pretty ~bold~bold~h~. |
~italic~ |
Italic text. Use a second time to remove italics. |
Text can be ~italic~written~italic~ in italics. |
~ws~ |
A wanted star. | The ~ws~~ws~ on the top right indicates |
~wanted_star~ |
A wanted star, equal to ~ws~ . |
~wanted_star~~wanted_star~~wanted_star~ |
<C>...</C> |
Condensed. Usually used for gamer tags. | <C>~a~</C> is dominating you. |
~nrt~ |
Unknown. | |
~EX_R*~ |
A Rockstar logo, in fonts that support this character. | The ~EX_R*~ logo is a registered trademark |
~BLIP_...~ |
In help messages and other supported contexts, shows the blip with the specified name. | Benny's Original Motor Works is now available at ~HUD_COLOUR_YELLOW~~BLIP_BENNYS~~s~. |
Content formatting codes
Label | Description | Example |
---|---|---|
~a~ |
A placeholder for a substring 'text component', such as ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL. | Fight the ~a~. |
~1~ |
A placeholder for a numeric 'text component', such as ADD_TEXT_COMPONENT_INTEGER. | There are ~1~ enemies left. |
~a_X~ |
For translations, refers to ~a~ placeholders out of the usual order. | Get the ~a_1~ from the ~a_0~. |
~1_X~ |
For translations, refers to ~1~ placeholders out of the usual order. | There's ~1_1~ enemies left out of ~1_0~. |
~x~ |
Unknown. Related to subtitles. | |
~z~ |
At the start of a string, makes the string hidden if subtitles are turned off. | ~z~Fucking terrorists. There's been a big scare |
Input codes
Label | Description | Example |
---|---|---|
~INPUT_...~ |
In help messages and other supported contexts, shows the current key for a specified control. | Press ~INPUT_CONTEXT~ to stand up. |
~INPUTGROUP_...~ |
In help messages and other supported contexts, shows a specified input group's hint. | If your car is upside down, try rocking ~INPUTGROUP_VEH_MOVE_ALL~ to flip it over. |
~ACCEPT~ |
Shows the button to accept a prompt. | |
~CANCEL~ |
Shows the button to cancel a prompt. | |
~PAD_UP~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DOWN~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LEFT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RIGHT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_A~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_B~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_X~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_Y~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_START~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_BACK~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LB~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RB~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_UP~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_DOWN~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_LEFT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_RIGHT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_NONE~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_ALL~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_UPDOWN~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_DPAD_LEFTRIGHT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_UP~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_DOWN~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_LEFT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_RIGHT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_NONE~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_ALL~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_UPDOWN~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_LEFTRIGHT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_LSTICK_ROTATE~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_UP~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_DOWN~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_LEFT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_RIGHT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_NONE~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_ALL~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_UPDOWN~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_LEFTRIGHT~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 | |
~PAD_RSTICK_ROTATE~ |
在支持的环境中,显示游戏手柄按钮或其他控件。 |
最后修改 2023年01月26日: 翻不动了,就这样吧 (d2d0f76)