Table of Contents

Class VisibleDialog

Namespace
SampSharp.Entities.SAMP
Assembly
SampSharp.OpenMp.Entities.dll

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

dialog IDialog

The open.mp dialog shown to the player.

handler Action<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

IDialog

Handler

Gets the response handler for the dialog.

public Action<DialogResult> Handler { get; }

Property Value

Action<DialogResult>

ResponseReceived

Gets or sets a value indicating whether a response has been received.

public bool ResponseReceived { get; set; }

Property Value

bool

Methods

OnDestroyComponent()

This method is invoked before this component is destroyed and removed from its entity.

protected override void OnDestroyComponent()

See Also