Class QuickDialogSystem
This handles the server portion of quick dialogs, including opening them.
Inheritance
System.Object
QuickDialogSystem
Namespace: Content.Server.Administration
Assembly: Content.Server.dll
Syntax
public sealed class QuickDialogSystem : EntitySystem
Methods
| Improve this Doc View SourceInitialize()
Declaration
public override void Initialize()
OpenDialog<T1>(IPlayerSession, String, String, Action<T1>, Nullable<Action>)
Opens a dialog for the given client, allowing them to enter in the desired data.
Declaration
public void OpenDialog<T1>(IPlayerSession session, string title, string prompt, Action<T1> okAction, Action? cancelAction = null)
Parameters
Type | Name | Description |
---|---|---|
Robust.Server.Player.IPlayerSession | session | Client to show a dialog for. |
System.String | title | Title of the dialog. |
System.String | prompt | The prompt. |
Action<T1> | okAction | The action to execute upon Ok being pressed. |
System.Nullable<Action> | cancelAction | The action to execute upon the dialog being cancelled. |
Type Parameters
Name | Description |
---|---|
T1 | Type of the input. |
Shutdown()
Declaration
public override void Shutdown()