Verbs can now set themselves as invisible.

This commit is contained in:
Acruid
2019-05-15 12:49:29 -07:00
parent 8c6f6f3fb0
commit d52e5ccbfb
6 changed files with 49 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Content.Shared.GameObjects;
@@ -168,7 +168,7 @@ namespace Content.Client.GameObjects.EntitySystems
}
}
var disabled = verb.IsDisabled(user, component);
var disabled = verb.GetVisibility(user, component) != VerbVisibility.Visible;
var button = new Button
{
Text = verb.GetText(user, component),