Verb confirmation (#6137)

This commit is contained in:
ShadowCommander
2022-01-13 06:28:17 -08:00
committed by GitHub
parent 007caf26b7
commit 4f80dfda0d
8 changed files with 117 additions and 12 deletions

View File

@@ -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)
{