API reference Obsidian.API.Builders
DialogBuilder class
public sealed class DialogBuilder
In Obsidian.API.
Methods
public DialogBuilder AfterAction(string behavior);public DialogElement Build();public static DialogBuilder Confirmation(ChatMessage title, DialogAction yes, DialogAction no);public static DialogBuilder DialogList(ChatMessage title, params string[] ids);public static DialogBuilder DialogTag(ChatMessage title, string tag);public static DialogBuilder MultiAction(ChatMessage title);public static DialogBuilder Notice(ChatMessage title, DialogAction action = null);Register(string, bool, bool)
public DialogElement Register(string id, bool quickAction = false, bool pauseScreen = false);Builds the dialog and registers it with DialogRegistry.Register.
Remarks
Register before players connect: players playing get changed dialogs when plugins load or unload. A plugin's dialogs are removed when it unloads.
public static DialogBuilder ServerLinks(ChatMessage title);public DialogBuilder WithAction(DialogAction action);public DialogBuilder WithActions(params DialogAction[] actions);public DialogBuilder WithBody(params DialogBody[] body);public DialogBuilder WithButtonWidth(int width);public DialogBuilder WithColumns(int columns);public DialogBuilder WithEscape(bool allowed = true);public DialogBuilder WithExitAction(DialogAction action);public DialogBuilder WithExternalTitle(ChatMessage title);public DialogBuilder WithInput(params DialogInput[] inputs);public DialogBuilder WithMessage(ChatMessage message, int width = 200);public DialogBuilder WithPause(bool pause = true);