Summary

Methods

Adds a line of colored text to the markup object.
GetText()client
Returns the markup text built so far.
Adds a title line to the markup object.

Methods

MARKUP_OBJECT:Add(text, color, scale, noNewLine)

client gamemodes/catwork/gamemode/core/libraries/cl_theme.lua:454

Adds a line of colored text to the markup object.

The text is parsed with config.Parse first, so config placeholders work.

Parameters

  • text String Text to add
  • color Color optional, defaults to nil Color of the text
  • scale Number optional, defaults to nil Text scale
  • noNewLine Boolean optional, defaults to nil Whether to append to the last line instead of starting a new one

Returns the markup text built so far.

Returns

  • String The markup text

MARKUP_OBJECT:Title(title, color, scale)

client gamemodes/catwork/gamemode/core/libraries/cl_theme.lua:468

Adds a title line to the markup object.

Parameters

  • title String Text of the title
  • color Color optional, defaults to nil Color of the title; the information option color when nil
  • scale Number optional, defaults to 1.2 Text scale

Defined in