A TEXT
element renders a string of text. The text may contain Unity formatting codes and tags that will be replaced when displayed by the actual values.
Text
A formatted text template. Default: EmptyTextAnchor
Alignment of the text relative to the bounds of the element. Supports any one of these values:UpperLeft
,UpperCenter
,UpperRight
,MiddleLeft
,MiddleCenter
,MiddleRight
,LowerLeft
,LowerCenter
, andLowerRight
. Default: MiddleCenterFont
name of an OS font to use for text in the element. NOTE: this value is case sensitive and the name must EXACTLY match the name of a font installed in your operating system (e.g.Arial
,Comic Sans MS
,Times New Roman
). Default: none.FontSize
Size of the font. Note that rich text format specifiers can override this. Default: 10FontStyle
Style of the font. Supports any one of these values:Normal
,Bold
,Italic
, andBoldAndItalic
. Note that rich text format specifiers can override this. Default: NormalColor
Color of the font. Note that rich text format specifiers can override this. Default: 1.0,1.0,1.0,1.0TRAIT
a block level property defining how to display crew information for a specific type of crew member (e.g. Pilot) Example:
TRAIT
{
Name = Pilot // the name of the trait from the game's config files
Label = (P) // optional label to display after crew member's name
Color = red
}
See Traits.md for more detailsTRAITDEFINITIONS
the name of a file inside the layouts folder that contains a list ofTRAIT
blocks (allows easily defining same settings for multiple TEXT type elements) Example: TRAITDEFINITIONS = colored.traitsconfig. (See Traits.md for more details)BaseYear
Offset added to year values and formatted dates. Default: 1 (Kerbin CalendarMode) or 1951 (Earth CalendarMode)
DateFormat
A C# format string for the element. Example:dd/MM/yyyy
for UK style short date. Default: CurrentCulture.LongDatePattern (See Date amd Time Specific Tags for more information on current syntax)PilotColor
Unity richtext color to apply to pilot names in or elements. Default: clear (See The Crew Tag for more information)EngineerColor
Unity richtext color to apply to engineer names in or elements. Default: clearScientistColor
Unity richtext color to apply to scientist names in or elements. Default: clearTouristColor
Unity richtext color to apply to tourist names in or elements. Default: clear
--