Skip to content

Class: CUILines

UI binding for CUILines.

Source

C++ class CUILines

Custom Constructor

CUILines

Constructors

Constructor

ts
new CUILines(): CUILines;

Returns

CUILines

Methods

GetText()

ts
GetText(): string;

Returns

string

Current text.


SetElipsis()

ts
SetElipsis(value: boolean): void;

Enable or disable ellipsis.

Parameters

ParameterTypeDescription
valuebooleanWhether long text should be ellipsized.

Returns

void


SetFont()

ts
SetFont(value: CGameFont): void;

Set text font.

Parameters

ParameterTypeDescription
valueCGameFontFont object.

Returns

void


SetText()

ts
SetText(text: string): void;

Set raw text.

Parameters

ParameterTypeDescription
textstringText value.

Returns

void


SetTextColor()

ts
SetTextColor(color_code: number): void;

Set text color.

Parameters

ParameterTypeDescription
color_codenumberARGB color.

Returns

void


SetTextST()

ts
SetTextST(text: string): void;

Set translated string-table text.

Parameters

ParameterTypeDescription
textstringString table id.

Returns

void