Show / Hide Table of Contents

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 Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

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.

| Improve this Doc View Source

Shutdown()

Declaration
public override void Shutdown()
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾