Skip to content

Class: MockCUILines ​

Mock CUILines.

Implements ​

  • CUILines

Constructors ​

Constructor ​

ts
new MockCUILines(): MockCUILines;

Returns ​

MockCUILines

Methods ​

create() ​

ts
static create(): MockCUILines;

Returns ​

MockCUILines


mock() ​

ts
static mock(): CUILines;

Returns ​

CUILines

Properties ​

GetText ​

ts
GetText: Mock<() => string>;

Returns ​

Current text.

Implementation of ​

ts
CUILines.GetText

SetElipsis ​

ts
SetElipsis: Mock<UnknownFunction>;

Enable or disable ellipsis.

Param ​

value

Whether long text should be ellipsized.

Implementation of ​

ts
CUILines.SetElipsis

SetFont ​

ts
SetFont: Mock<UnknownFunction>;

Set text font.

Param ​

value

Font object.

Implementation of ​

ts
CUILines.SetFont

SetText ​

ts
SetText: Mock<(text: string) => void>;

Set raw text.

Param ​

text

Text value.

Implementation of ​

ts
CUILines.SetText

SetTextColor ​

ts
SetTextColor: Mock<UnknownFunction>;

Set text color.

Param ​

color_code

ARGB color.

Implementation of ​

ts
CUILines.SetTextColor

SetTextST ​

ts
SetTextST: Mock<(text: string) => void>;

Set translated string-table text.

Param ​

text

String table id.

Implementation of ​

ts
CUILines.SetTextST

text ​

ts
text: string = "";