The token format is similar to the strings returned by GET_CONTROL_INSTRUCTIONAL_BUTTON and GET_CONTROL_GROUP_INSTRUCTIONAL_BUTTON. Supported tokens:
t_[char]/T_[char]: char must match one of the keys Text in the current keyboard layout (example: t_A)
b_[id]: special keys/icons (example: b_20)
Groups of t_/T_/b_ tokens separated by % (example: t_A%b_20)
+: alias for b_998 (plus symbol)
Added InstructionalKey enum containing values for keys, mouse buttons, controller buttons and other icons, with GetId() extension method that returns the correct token.
Added GetInstructionalId() and GetInstructionalKey() extensions methods for System.Windows.Forms.Keys and Rage.ControllerButtons enums, to convert them to the correct string token or InstructionalKey value.
Added a constructor to InstructionalButtonId that takes a InstructionalKey.
Add support for parsing
~
tokens for arbitrary key icons in help text (and other scaleforms whereSET_FORMATTED_TEXT_WITH_ICONS
is used).The token format is similar to the strings returned by
GET_CONTROL_INSTRUCTIONAL_BUTTON
andGET_CONTROL_GROUP_INSTRUCTIONAL_BUTTON
. Supported tokens:t_[char]
/T_[char]
: char must match one of the keysText
in the current keyboard layout (example:t_A
)b_[id]
: special keys/icons (example:b_20
)t_
/T_
/b_
tokens separated by%
(example:t_A%b_20
)+
: alias forb_998
(plus symbol)Added
InstructionalKey
enum containing values for keys, mouse buttons, controller buttons and other icons, withGetId()
extension method that returns the correct token.Added
GetInstructionalId()
andGetInstructionalKey()
extensions methods forSystem.Windows.Forms.Keys
andRage.ControllerButtons
enums, to convert them to the correct string token orInstructionalKey
value.Added a constructor to
InstructionalButtonId
that takes aInstructionalKey
.