Skip to content
Version 2.35.0
↓ Get the launcher

ConfirmRequest record

One question for a ConfirmController (framework 2.33.0). Pass already-localized texts. Every option is an init property, so more can be added without breaking compiled plugins.

public record ConfirmRequest
name description
ConfirmRequest(…) One question for a ConfirmController (framework 2.33.0). Pass already-localized texts. Every option is an init property, so more can be added without breaking compiled plugins.
CancelLabel { get; set; } Label of the cancel pill. Null = the framework’s localized “Cancel”.
ConfirmLabel { get; set; } Label of the confirm pill. Null = the framework’s localized “OK”.
DontAskAgainKey { get; set; } Non-null = offer a “Don’t ask again” checkbox (off when the dialog opens). Confirming with it ticked stores this key in DontAskStore; from then on Show runs OnConfirm at once without opening. Null (default) = no checkbox. Don’t use it for deletes.
Emphasis { get; set; } Optional bold line under the message (e.g. “This can’t be undone.”). Null = none.
Message { get; set; } The body text in the card’s message box.
OnCancel { get; set; } Runs after the dialog closed without confirming (Cancel, Esc, the window’s ✕, the window or the host being hidden, or a newer request replacing this one). Null = nothing.
OnConfirm { get; set; } Runs after the dialog closed, when the player confirms.
Severity { get; set; } Colour of the icon tile and the confirm pill. Default Danger.
Subtitle { get; set; } Muted caption under the title, shown UPPERCASE (e.g. the window or feature name). Null = none.
Title { get; set; } The bold question, e.g. “Delete all 12 runs?”.