cw.theme.MarkupObject objectclient
Object table MARKUP_OBJECT in core/libraries/cl_theme.lua
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:454Adds 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
nilColor of the text - scale Number optional, defaults to
nilText scale - noNewLine Boolean optional, defaults to
nilWhether 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:468Adds a title line to the markup object.
Parameters
- title String Text of the title
- color Color optional, defaults to
nilColor of the title; theinformationoption color whennil - scale Number optional, defaults to
1.2Text scale