Modding:Colors & Object Rendering: Difference between revisions

m (→‎Additional notes: rv capitalization)
Line 46: Line 46:
== Beta Modding ==
== Beta Modding ==
{{betamoddingcontent}}
{{betamoddingcontent}}
Text can also be colored as follows using any of the color templates defined in StreamingAssets\Base\Colors.xml<syntaxhighlight>
Text can also be colored as follows using any of the color templates defined in StreamingAssets\Base\Colors.xml.
<pre>
{{color template|your text to color here}}
{{color template|your text to color here}}
</syntaxhighlight>
</pre>
=== List of possible templates ===
{{#invoke:ColorParse|shaderlist}}
=== Anonymous Templates ===
To create a temporary template, the format is: <pre>{{[color pattern delimited by -] [type]|[text]}}</pre>.
 
The list of possible types are:
{| class = "wikitable"
!Type
!Pattern
!Example
|-
|sequence
| repeats the pattern.
| {{Qud shader|blaze|texttexttexttext}}
|-
| alternation
| stretches the pattern so it fits the entire word.
| {{Qud shader|ghostly|texttexttexttext}}
|-
| chaotic
| chooses colors randomly out of the colors specified.
|
|-
| bordered
|
| {{qud shader|horned|texttexttexttext}}
|}


=See Also=
=See Also=