Table of Contents

Interface IPlayerDialogData.IManagedInterface

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the managed interface implemented by its unmanaged counterpart.

public interface IPlayerDialogData.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

Get(out int, out DialogStyle, out string?, out string?, out string?, out string?)

Gets the information of the current dialog shown to the player.

void Get(out int id, out DialogStyle style, out string? title, out string? body, out string? button1, out string? button2)

Parameters

id int

When the method returns, contains the ID of the dialog.

style DialogStyle

When the method returns, contains the style of the dialog.

title string

When the method returns, contains the title of the dialog.

body string

When the method returns, contains the body text of the dialog.

button1 string

When the method returns, contains the text of the first button.

button2 string

When the method returns, contains the text of the second button.

GetActiveID()

Gets the ID of the currently active dialog for the player.

int GetActiveID()

Returns

int

The ID of the active dialog, or -1 if no dialog is active.

Hide(IPlayer)

Hides any dialog currently shown to the player.

void Hide(IPlayer player)

Parameters

player IPlayer

The player to hide the dialog for.

Show(IPlayer, int, DialogStyle, string, string, string, string)

Shows a dialog to the player.

void Show(IPlayer player, int id, DialogStyle style, string title, string body, string button1, string button2)

Parameters

player IPlayer

The player to show the dialog to.

id int

The ID of the dialog.

style DialogStyle

The style/type of dialog.

title string

The title of the dialog.

body string

The body/content text of the dialog.

button1 string

The text for the first (right) button.

button2 string

The text for the second (left) button.