2020-07-28 08:33:38 +02:00
|
|
|
using Content.Client.GameObjects.EntitySystems;
|
2020-08-13 14:40:27 +02:00
|
|
|
using Content.Shared.GameObjects.Verbs;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2020-07-28 08:33:38 +02:00
|
|
|
using Robust.Shared.Localization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.GlobalVerbs
|
|
|
|
|
{
|
|
|
|
|
[GlobalVerb]
|
|
|
|
|
public class ExamineVerb : GlobalVerb
|
|
|
|
|
{
|
|
|
|
|
public override bool RequireInteractionRange => false;
|
|
|
|
|
|
2020-08-15 20:38:37 +02:00
|
|
|
public override bool BlockedByContainers => false;
|
|
|
|
|
|
2020-07-28 08:33:38 +02:00
|
|
|
public override void GetData(IEntity user, IEntity target, VerbData data)
|
|
|
|
|
{
|
|
|
|
|
data.Visibility = VerbVisibility.Visible;
|
|
|
|
|
data.Text = Loc.GetString("Examine");
|
2021-03-14 14:40:01 +01:00
|
|
|
data.IconTexture = "/Textures/Interface/VerbIcons/examine.svg.192dpi.png";
|
2020-07-28 08:33:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Activate(IEntity user, IEntity target)
|
|
|
|
|
{
|
|
|
|
|
EntitySystem.Get<ExamineSystem>().DoExamine(target);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|