Class VisibleDialog
A component which contains the data of the currently visible dialog.
public class VisibleDialog : Component
- Inheritance
-
VisibleDialog
- Inherited Members
Remarks
Initializes a new instance of the VisibleDialog class.
Constructors
VisibleDialog(IDialog, Action<DialogResult>)
A component which contains the data of the currently visible dialog.
public VisibleDialog(IDialog dialog, Action<DialogResult> handler)
Parameters
dialogIDialogThe open.mp dialog shown to the player.
handlerAction<DialogResult>The response handler.
Remarks
Initializes a new instance of the VisibleDialog class.
- See Also
Properties
Dialog
Gets the visible dialog.
public IDialog Dialog { get; }
Property Value
Handler
Gets the response handler for the dialog.
public Action<DialogResult> Handler { get; }
Property Value
ResponseReceived
Gets or sets a value indicating whether a response has been received.
public bool ResponseReceived { get; set; }
Property Value
Methods
OnDestroyComponent()
This method is invoked before this component is destroyed and removed from its entity.
protected override void OnDestroyComponent()