// View variables verbs
if (_clientConGroupController.CanViewVar())
{
- Verb verb = new()
+ var verb = new VvVerb()
{
- Category = VerbCategory.Debug,
- Text = "View Variables",
+ Text = Loc.GetString("view-variables"),
Icon = new SpriteSpecifier.Texture(new ("/Textures/Interface/VerbIcons/vv.svg.192dpi.png")),
Act = () => _clientConsoleHost.ExecuteCommand($"vv {GetNetEntity(args.Target)}"),
ClientExclusive = true // opening VV window is client-side. Don't ask server to run this verb.
-using Robust.Shared.Serialization;
-using Robust.Shared.Utility;
using Content.Shared.Database;
using Content.Shared.Interaction.Events;
+using Robust.Shared.Serialization;
+using Robust.Shared.Utility;
namespace Content.Shared.Verbs
{
public static List<Type> VerbTypes = new()
{
typeof(Verb),
+ typeof(VvVerb),
typeof(InteractionVerb),
typeof(UtilityVerb),
typeof(InnateVerb),
};
}
+ /// <summary>
+ /// View variables verbs.
+ /// </summary>
+ /// <remarks>Currently only used for the verb that opens the view variables panel.</remarks>
+ [Serializable, NetSerializable]
+ public sealed class VvVerb : Verb
+ {
+ public override int TypePriority => int.MaxValue;
+ }
+
/// <summary>
/// Primary interaction verbs. This includes both use-in-hand and interacting with external entities.
/// </summary>