Modding:Colors & Object Rendering: Difference between revisions

 
Line 44: Line 44:


== Color Markup Language ==
== Color Markup Language ==
Most default text in the game is colored grey (&y), so you'll often see an <code>&y</code> at the end of strings to reset the color back to normal.  When putting strings using the basic color codes together to make sentences extremely confusing color bleed becomes possible.  Because of this there is new system which parses text in double curly braces: <code>{{color|text}}</code>.  If you want to ensure colors "return" to what they were set to, you can leave out the color.  <code>"{{|&RThis text is red}} and this will be whatever the color was before red"</code>
Most default text in the game is colored grey (&y), so you'll often see an <code>&y</code> at the end of strings to reset the color back to normal.  When putting strings using the basic color codes together to make sentences extremely confusing color bleed becomes possible.  Because of this there is new system which parses text in double curly braces: <code><nowiki>{{color|text}}</nowiki></code>.  If you want to ensure colors "return" to what they were set to, you can leave out the color.  <code><nowiki>"{{|&RThis text is red}} and this will be whatever the color was before red"</nowiki></code>


In general, every string for rendering, except the color string/detail color on render part should use the new Markup language.
In general, every string for rendering, except the color string/detail color on render part should use the new Markup language.