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

@@ -164,9 +164,9 @@ namespace Content.Server.GameObjects.Components.Interactable
return component.Cell == null ? "Eject cell (cell missing)" : "Eject cell";
}
protected override bool IsDisabled(IEntity user, HandheldLightComponent component)
protected override VerbVisibility GetVisibility(IEntity user, HandheldLightComponent component)
{
return component.Cell == null;
return component.Cell == null ? VerbVisibility.Disabled : VerbVisibility.Visible;
}
protected override void Activate(IEntity user, HandheldLightComponent component)