Skip to content

Class: MockStaticDrawableWrapper ​

Mock StaticDrawableWrapper.

Implements ​

  • StaticDrawableWrapper

Constructors ​

Constructor ​

ts
new MockStaticDrawableWrapper(id: string): MockStaticDrawableWrapper;

Parameters ​

ParameterType
idstring

Returns ​

MockStaticDrawableWrapper

Methods ​

wnd() ​

ts
wnd(): CUIStatic;

Returns ​

CUIStatic

Wrapped static window.

Implementation of ​

ts
StaticDrawableWrapper.wnd

create() ​

ts
static create(id: string): MockStaticDrawableWrapper;

Parameters ​

ParameterType
idstring

Returns ​

MockStaticDrawableWrapper


mock() ​

ts
static mock(id: string): StaticDrawableWrapper;

Parameters ​

ParameterType
idstring

Returns ​

StaticDrawableWrapper

Properties ​

destroy ​

ts
destroy: Mock<() => void>;

Destroy the wrapper.

Remarks ​

Destroys the wrapped static window. Prefer CUIGameCustom.RemoveCustomStatic for HUD-owned statics.

Implementation of ​

ts
StaticDrawableWrapper.destroy

Draw ​

ts
Draw: Mock<UnknownFunction>;

Draw the wrapped static.

Implementation of ​

ts
StaticDrawableWrapper.Draw

id ​

ts
readonly id: string;

IsActual ​

ts
IsActual: Mock<() => boolean>;

Returns ​

Whether the wrapper is still active.

Implementation of ​

ts
StaticDrawableWrapper.IsActual

isDestroyed ​

ts
isDestroyed: boolean = false;

m_endTime ​

ts
m_endTime: number = -1;

Absolute engine time when this static expires, or a negative value for no time limit.

Implementation of ​

ts
StaticDrawableWrapper.m_endTime

SetText ​

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

Set text on the wrapped static.

Param ​

text

Text value.

Implementation of ​

ts
StaticDrawableWrapper.SetText

uiStatic ​

ts
readonly uiStatic: CUIStatic;

Update ​

ts
Update: Mock<UnknownFunction>;

Update wrapper lifetime and state.

Implementation of ​

ts
StaticDrawableWrapper.Update