Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

IFormatter

Accessing the text formatting Handler

You can access the Formatting Handler using the format global keyword.

Formatting a text

Color

You can give an IFormattedText a color using one of the following Colors:

  • black
  • darkBlue
  • darkGreen
  • darkAqua
  • darkRed
  • darkPurple
  • gold
  • gray
  • darkGray
  • blue
  • green
  • aqua
  • red
  • lightPurple
  • yellow
  • white

Style

You can give an IFormattedText one (or more) of the following formatting styles:

  • obfuscated
  • bold
  • strikethrough
  • underline
  • italic