Knowledgebase Article 83


Formatting texts

Many texts in ASC can be formatted, for example ingame-messages, unit description, messages from Events and many others.

The formatting is done by inserting tags into the text. The following tags are available:

#fontsize=X#
Sets the font size to X. Typical sizes are in the range 12 - 18

#image=FILENAME.PNG#
Inserts the image into the text

#fontcolor=0xRRGGBB#
Changes the font color to the specified value. RR / GG / BB are the red, green and blue component of the color in hexadecimal format (00 - FF). You can determine them with many HTML editors or graphic manipulation programs (like GIMP)

#fontcolor=default#
Resets the font color to the default one, which is defined in the ASC theme

#indent=X,Y#
Sets the indentation of lines. X is the amount of indentation for the first line of a paragraph, Y is the indentation for all remaining lines of a paragraph.

#crt=X#
Inserts a vertical space of X pixels

#vehicletype=X#
Inserts the image of the vehicle type with id X

There are also some more tags being evaluated to render old legacy texts, so you may find them in existing texts, but since they should not be used for new one they are not listed here.

Last change: Sun, 2007-01-14 2:15


search knowledgebase
browse knowledgebase