onToggleDialogState

Toggles the state of various dialogs based on the provided DialogToggleEvent.

Modifies the DialogUiState based on the type of event received, such as toggling the back alert dialog, image dialog, cargo dialog, or finish transport dialog.

Parameters

event

The DialogToggleEvent to process and update the dialog state.