Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 2.75 KB

File metadata and controls

34 lines (27 loc) · 2.75 KB

Text Element

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: Empty
  • TextAnchor 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, and LowerRight. Default: MiddleCenter
  • Font 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: 10
  • FontStyle Style of the font. Supports any one of these values: Normal, Bold, Italic, and BoldAndItalic. Note that rich text format specifiers can override this. Default: Normal
  • Color Color of the font. Note that rich text format specifiers can override this. Default: 1.0,1.0,1.0,1.0
  • TRAIT 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 details
  • TRAITDEFINITIONS the name of a file inside the layouts folder that contains a list of TRAIT 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)

Deprecated properties

  • 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: clear
  • ScientistColor Unity richtext color to apply to scientist names in or elements. Default: clear
  • TouristColor Unity richtext color to apply to tourist names in or elements. Default: clear

--