Fix midi verb (#6880)

This commit is contained in:
Leon Friedrich
2022-02-25 00:10:12 +13:00
committed by GitHub
parent 902faa941d
commit c6a0d9ac52
5 changed files with 10 additions and 1 deletions

View File

@@ -34,12 +34,15 @@ namespace Content.Server.UserInterface
if (!args.CanAccess)
return;
if (component.InHandsOnly && args.Using != uid)
return;
if (!args.CanInteract && !HasComp<GhostComponent>(args.User))
return;
ActivationVerb verb = new();
verb.Act = () => InteractUI(args.User, component);
verb.Text = Loc.GetString("ui-verb-toggle-open");
verb.Text = Loc.GetString(component.VerbText);
// TODO VERBS add "open UI" icon?
args.Verbs.Add(verb);
}