Move view variables verb to the top of the list with no category and localize it (#20546)

This commit is contained in:
DrSmugleaf
2023-09-30 13:22:07 -07:00
committed by GitHub
parent 574b2a94d9
commit 585ab5ca84
2 changed files with 15 additions and 5 deletions

View File

@@ -24,10 +24,9 @@ namespace Content.Client.Administration.Systems
// 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.