Verb icons now UI scale.
This commit is contained in:
@@ -216,7 +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";
|
||||
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
|
||||
}
|
||||
|
||||
protected override void Activate(IEntity user, AmmoBoxComponent component)
|
||||
|
||||
@@ -294,7 +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";
|
||||
data.IconTexture = "/Textures/Interface/VerbIcons/refresh.svg.192dpi.png";
|
||||
}
|
||||
|
||||
protected override void Activate(IEntity user, RevolverBarrelComponent component)
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
|
||||
else
|
||||
{
|
||||
data.Text = Loc.GetString("Eject cell");
|
||||
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
|
||||
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -463,7 +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";
|
||||
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
|
||||
if (component.MagNeedsOpenBolt)
|
||||
{
|
||||
data.Visibility = component.HasMagazine && component.BoltOpen
|
||||
|
||||
Reference in New Issue
Block a user