Skip to content

Class: CDialogHolder

UI binding for CDialogHolder.

Source

C++ class CDialogHolder

Custom Constructor

CDialogHolder

Remarks

Manages the dialog render list and input receiver stack. It does not create or own dialog windows.

Constructors

Constructor

ts
new CDialogHolder(): CDialogHolder;

Returns

CDialogHolder

Methods

AddDialogToRender()

ts
AddDialogToRender(window: CUIWindow): void;

Add a dialog to rendering.

Parameters

ParameterTypeDescription
windowCUIWindowDialog window.

Returns

void

Remarks

The holder shows the window and skips duplicate active entries.


MainInputReceiver()

ts
MainInputReceiver(): Nullable<CUIDialogWnd>;

Returns

Nullable<CUIDialogWnd>

Current main input receiver, or null when no dialog owns input.


RemoveDialogToRender()

ts
RemoveDialogToRender(window: CUIWindow): void;

Remove a dialog from rendering.

Parameters

ParameterTypeDescription
windowCUIWindowDialog window.

Returns

void

Remarks

The holder hides and disables the window, then removes it from the active render list on update.


SetMainInputReceiver()

ts
SetMainInputReceiver(window: Nillable<CUIDialogWnd>, find_remove: boolean): void;

Set the main input receiver.

Parameters

ParameterTypeDescription
windowNillable<CUIDialogWnd>Dialog window, or null to pop the current receiver.
find_removebooleanWhether to remove the previous receiver if found.

Returns

void

Remarks

Passing find_remove removes the matching receiver from the stack. Passing null pops the current receiver.


start_stop_menu()

ts
start_stop_menu(window: CUIDialogWnd, value: boolean): void;

Start or stop an in-game menu.

Parameters

ParameterTypeDescription
windowCUIDialogWndMenu window.
valuebooleanWhether the menu should be active.

Returns

void

Remarks

This toggles the dialog through the holder, including cursor and HUD indicator handling.


TopInputReceiver()

ts
TopInputReceiver(): Nullable<CUIDialogWnd>;

Returns

Nullable<CUIDialogWnd>

Current top input receiver, or null when no dialog owns input.