User Tools

Site Tools


cw4:a.d.a_syntax_syntax_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cw4:a.d.a_syntax_syntax_guide [2020/12/20 17:15] – [Font] Karsten75cw4:a.d.a_syntax_syntax_guide [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 3: Line 3:
 Source material for this feature is contained [[http://digitalnativestudios.com/textmeshpro/docs/rich-text/| here]]. This page serves as a backup since it is not clear who owns or is in charge of maintaining the source material. Source material for this feature is contained [[http://digitalnativestudios.com/textmeshpro/docs/rich-text/| here]]. This page serves as a backup since it is not clear who owns or is in charge of maintaining the source material.
 </WRAP> </WRAP>
 +===== Key Bindings (Available in version 1.4 and later) =====
 +You can use special tags to include key bindings in the text. Key bindings are whatever key a user has assigned to an action. For instance the default key binding for ''MoveMapUp'' is ''W'' The default key binding for ''Custom0'' is ''Keypad0''.\\
 +To specify a key binding, include the name of the key binding between ''%%<<%%'' and ''%%>>%%'' For instance: \\
 +''To fire a missile, press [%%<<Custom0>>%%]''.\\
 +The ''%%<<Custom0>>%%'' tag will get replaced with whatever the user's key binding is.  It might appear like this:\\
 +''To fire a mission, press [Keypad0]''.
 +
 +
 ===== Rich Text ===== ===== Rich Text =====
 You can use rich text tags to alter the appearance and layout of your text. These tags work like HTML or XML tags, but have less strict syntax. You can use rich text tags to alter the appearance and layout of your text. These tags work like HTML or XML tags, but have less strict syntax.
Line 32: Line 40:
 | pos                           | [[a.d.a_syntax_syntax_guide#horizontal_position               | Horizontal caret position]].|  | pos                           | [[a.d.a_syntax_syntax_guide#horizontal_position               | Horizontal caret position]].| 
 | size                           | [[a.d.a_syntax_syntax_guide#font_size                         | Font size]].|  | size                           | [[a.d.a_syntax_syntax_guide#font_size                         | Font size]].| 
-pace                           | [[a.d.a_syntax_syntax_guide#horizontal_space                  | Horizontal space]].| +space                           | [[a.d.a_syntax_syntax_guide#horizontal_space                  | Horizontal space]].| 
 | sprite                   | [[a.d.a_syntax_syntax_guide#sprite_emoji                      | Insert sprites (emoji)]].|  | sprite                   | [[a.d.a_syntax_syntax_guide#sprite_emoji                      | Insert sprites (emoji)]].| 
 | s, u                           | [[a.d.a_syntax_syntax_guide#strikethrough_and_underline      | Strikethrough and underline]].|  | s, u                           | [[a.d.a_syntax_syntax_guide#strikethrough_and_underline      | Strikethrough and underline]].| 
cw4/a.d.a_syntax_syntax_guide.1608484553.txt.gz · Last modified: 2025/02/14 14:56 (external edit)