Class: MockStaticDrawableWrapper
Mock StaticDrawableWrapper.
Implements
StaticDrawableWrapper
Constructors
Constructor
ts
new MockStaticDrawableWrapper(id: string): MockStaticDrawableWrapper;Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
MockStaticDrawableWrapper
Methods
wnd()
ts
wnd(): CUIStatic;Returns
CUIStatic
Wrapped static window.
Implementation of
ts
StaticDrawableWrapper.wndcreate()
ts
static create(id: string): MockStaticDrawableWrapper;Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
MockStaticDrawableWrapper
mock()
ts
static mock(id: string): StaticDrawableWrapper;Parameters
| Parameter | Type |
|---|---|
id | string |
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.destroyDraw
ts
Draw: Mock<UnknownFunction>;Draw the wrapped static.
Implementation of
ts
StaticDrawableWrapper.Drawid
ts
readonly id: string;IsActual
ts
IsActual: Mock<() => boolean>;Returns
Whether the wrapper is still active.
Implementation of
ts
StaticDrawableWrapper.IsActualisDestroyed
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_endTimeSetText
ts
SetText: Mock<(text: string) => void>;Set text on the wrapped static.
Param
text
Text value.
Implementation of
ts
StaticDrawableWrapper.SetTextuiStatic
ts
readonly uiStatic: CUIStatic;Update
ts
Update: Mock<UnknownFunction>;Update wrapper lifetime and state.
Implementation of
ts
StaticDrawableWrapper.Update