Skip to content

Class: StaticDrawableWrapper

UI binding for StaticDrawableWrapper.

Source

C++ class StaticDrawableWrapper

Custom Constructor

StaticDrawableWrapper

Remarks

Created by CUIGameCustom.AddCustomStatic. A negative m_endTime means the static does not expire by time.

Methods

destroy()

ts
destroy(): void;

Destroy the wrapper.

Returns

void

Remarks

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


Draw()

ts
Draw(): void;

Draw the wrapped static.

Returns

void


IsActual()

ts
IsActual(): boolean;

Returns

boolean

Whether the wrapper is still active.


SetText()

ts
SetText(text: string): void;

Set text on the wrapped static.

Parameters

ParameterTypeDescription
textstringText value.

Returns

void


Update()

ts
Update(): void;

Update wrapper lifetime and state.

Returns

void


wnd()

ts
wnd(): CUIStatic;

Returns

CUIStatic

Wrapped static window.

Properties

m_endTime

ts
m_endTime: number;

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