Verb confirmation (#6137)
This commit is contained in:
@@ -95,7 +95,7 @@ namespace Content.Shared.Verbs
|
||||
public bool Disabled;
|
||||
|
||||
/// <summary>
|
||||
/// Optional informative message.
|
||||
/// Optional informative message.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This will be shown as a tooltip when hovering over this verb in the context menu. Additionally, iF a
|
||||
@@ -135,6 +135,11 @@ namespace Content.Shared.Verbs
|
||||
/// </remarks>
|
||||
public LogImpact Impact = LogImpact.Low;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this verb requires confirmation before being executed.
|
||||
/// </summary>
|
||||
public bool ConfirmationPopup = false;
|
||||
|
||||
/// <summary>
|
||||
/// Compares two verbs based on their <see cref="Priority"/>, <see cref="Category"/>, <see cref="Text"/>,
|
||||
/// and <see cref="IconTexture"/>.
|
||||
@@ -165,7 +170,7 @@ namespace Content.Shared.Verbs
|
||||
{
|
||||
return string.Compare(Category?.Text, otherVerb.Category?.Text, StringComparison.CurrentCulture);
|
||||
}
|
||||
|
||||
|
||||
// Then try use alphabetical verb text.
|
||||
if (Text != otherVerb.Text)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user