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 [2019/10/27 01:10] – [Subscript and Superscript] 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]''.
 +
  
-<WRAP round todo 70%> 
-Mostly complete, awaiting approval 
-</WRAP> 
 ===== 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 36: 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]].| 
Line 126: Line 130:
  
 ==== Font ==== ==== Font ====
 +
 +<WRAP round info 50%>
 +Fonts and Materials are not supported for CW4
 +</WRAP>
 You can switch to a different font via ''<font="fontAssetName">''. From then on until you close the tag, the default font will be replaced by the font that you specified.  Available fonts are listed in the [[font list page]] when they become available.  You can switch to a different font via ''<font="fontAssetName">''. From then on until you close the tag, the default font will be replaced by the font that you specified.  Available fonts are listed in the [[font list page]] when they become available. 
  
Line 179: Line 187:
  
 ==== Text Link ==== ==== Text Link ====
-<WRAP round alert 50%> +<WRAP round info 50%> 
-Link metadata is not supported in the game+Links are not supported in CW4
 </WRAP> </WRAP>
  
Line 377: Line 385:
 </code> </code>
  
-<WRAP round box 70% left> +<WRAP round box 360px left> 
-{{voffset.png}}+{{voffset.png?350}}
 </WRAP> </WRAP>
  
Line 393: Line 401:
 </code> </code>
  
-<WRAP round box 70% left> +<WRAP round box 360px left> 
-{{width.png}}+{{width.png?350}}
 </WRAP> </WRAP>
  
cw4/a.d.a_syntax_syntax_guide.1572138630.txt.gz · Last modified: 2025/02/14 14:56 (external edit)