Interface IPlayerDialogData.IManagedInterface
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
idintWhen the method returns, contains the ID of the dialog.
styleDialogStyleWhen the method returns, contains the style of the dialog.
titlestringWhen the method returns, contains the title of the dialog.
bodystringWhen the method returns, contains the body text of the dialog.
button1stringWhen the method returns, contains the text of the first button.
button2stringWhen 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
playerIPlayerThe 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
playerIPlayerThe player to show the dialog to.
idintThe ID of the dialog.
styleDialogStyleThe style/type of dialog.
titlestringThe title of the dialog.
bodystringThe body/content text of the dialog.
button1stringThe text for the first (right) button.
button2stringThe text for the second (left) button.