Adds a bunch of UI icons for verbs. (#3007)

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
Swept
2021-03-14 13:23:32 +00:00
committed by GitHub
parent 13afec5f76
commit 3dba752193
84 changed files with 1469 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using Content.Shared.GameObjects.Verbs;
using Robust.Server.Console;
using Robust.Server.GameObjects;
@@ -33,6 +33,7 @@ namespace Content.Server.GlobalVerbs
data.Text = Loc.GetString("Delete");
data.CategoryData = VerbCategories.Debug;
data.Visibility = VerbVisibility.Visible;
data.IconTexture = "/Textures/Interface/VerbIcons/delete.svg.96dpi.png";
}
public override void Activate(IEntity user, IEntity target)

View File

@@ -31,6 +31,7 @@ namespace Content.Server.GlobalVerbs
data.Visibility = VerbVisibility.Visible;
data.Text = Loc.GetString("Make Sentient");
data.CategoryData = VerbCategories.Debug;
data.IconTexture = "/Textures/Interface/VerbIcons/sentient.svg.96dpi.png";
}
}

View File

@@ -1,4 +1,4 @@
using Content.Server.GameObjects.Components.Pointing;
using Content.Server.GameObjects.Components.Pointing;
using Content.Server.GameObjects.EntitySystems;
using Content.Shared.GameObjects.Verbs;
using Robust.Server.GameObjects;
@@ -18,6 +18,7 @@ namespace Content.Server.GlobalVerbs
public override void GetData(IEntity user, IEntity target, VerbData data)
{
data.Visibility = VerbVisibility.Invisible;
data.IconTexture = "/Textures/Interface/VerbIcons/point.svg.96dpi.png";
if (!user.HasComponent<IActorComponent>())
{

View File

@@ -1,4 +1,4 @@
using Content.Server.GameObjects.Components.Atmos;
using Content.Server.GameObjects.Components.Atmos;
using Content.Server.GameObjects.Components.Mobs;
using Content.Server.GameObjects.Components.Nutrition;
using Content.Shared.GameObjects.Components.Damage;
@@ -26,6 +26,7 @@ namespace Content.Server.GlobalVerbs
data.Text = Loc.GetString("Rejuvenate");
data.CategoryData = VerbCategories.Debug;
data.Visibility = VerbVisibility.Invisible;
data.IconTexture = "/Textures/Interface/VerbIcons/rejuvenate.svg.96dpi.png";
var groupController = IoCManager.Resolve<IConGroupController>();

View File

@@ -17,6 +17,7 @@ namespace Content.Server.GlobalVerbs
{
data.CategoryData = VerbCategories.Debug;
data.Visibility = VerbVisibility.Invisible;
data.IconTexture = "/Textures/Interface/VerbIcons/anchor.svg.96dpi.png";
var groupController = IoCManager.Resolve<IConGroupController>();