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

@@ -216,6 +216,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Ammunition
data.Text = Loc.GetString("Dump 10");
data.Visibility = component.AmmoLeft > 0 ? VerbVisibility.Visible : VerbVisibility.Disabled;
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
}
protected override void Activate(IEntity user, AmmoBoxComponent component)

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.Weapon.Ranged.Ammunition;
using Content.Shared.GameObjects;
@@ -294,6 +294,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
}
data.Visibility = component.ShotsLeft > 0 ? VerbVisibility.Visible : VerbVisibility.Disabled;
data.IconTexture = "/Textures/Interface/VerbIcons/refresh.svg.96dpi.png";
}
protected override void Activate(IEntity user, RevolverBarrelComponent component)

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.GUI;
@@ -302,12 +302,13 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
if (component.PowerCell == null)
{
data.Text = Loc.GetString("Eject cell (cell missing)");
data.Text = Loc.GetString("No cell");
data.Visibility = VerbVisibility.Disabled;
}
else
{
data.Text = Loc.GetString("Eject cell");
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
}
}

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Content.Server.GameObjects.Components.GUI;
@@ -463,6 +463,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
}
data.Text = Loc.GetString("Eject magazine");
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
if (component.MagNeedsOpenBolt)
{
data.Visibility = component.HasMagazine && component.BoltOpen