Verb icons now UI scale.

This commit is contained in:
Pieter-Jan Briers
2021-03-14 14:40:01 +01:00
parent 18c9851784
commit 70e2648fa0
104 changed files with 156 additions and 97 deletions

View File

@@ -263,7 +263,7 @@ namespace Content.Server.GameObjects.Components.Access
}
data.Text = Loc.GetString("Eject Privileged ID");
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
data.Visibility = component.PrivilegedIDEmpty ? VerbVisibility.Invisible : VerbVisibility.Visible;
}
@@ -289,7 +289,7 @@ namespace Content.Server.GameObjects.Components.Access
data.Text = Loc.GetString("Eject Target ID");
data.Visibility = component.TargetIDEmpty ? VerbVisibility.Invisible : VerbVisibility.Visible;
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
}
protected override void Activate(IEntity user, IdCardConsoleComponent component)

View File

@@ -145,7 +145,7 @@ namespace Content.Server.GameObjects.Components
}
data.Text = Loc.GetString("Open Configuration");
data.IconTexture = "/Textures/Interface/VerbIcons/settings.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/settings.svg.192dpi.png";
}
protected override void Activate(IEntity user, ConfigurationComponent component)

View File

@@ -28,7 +28,7 @@ namespace Content.Server.GameObjects.Components.Construction
data.CategoryData = VerbCategories.Construction;
data.Text = Loc.GetString("Begin deconstructing");
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_ccw.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_ccw.svg.192dpi.png";
}
protected override void Activate(IEntity user, ConstructionComponent component)

View File

@@ -792,7 +792,7 @@ namespace Content.Server.GameObjects.Components.Disposal
data.Visibility = VerbVisibility.Visible;
data.Text = Loc.GetString("Flush");
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
}
protected override void Activate(IEntity user, DisposalMailingUnitComponent component)

View File

@@ -199,7 +199,7 @@ namespace Content.Server.GameObjects.Components.Disposal
}
data.Text = Loc.GetString("Open Configuration");
data.IconTexture = "/Textures/Interface/VerbIcons/settings.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/settings.svg.192dpi.png";
}
protected override void Activate(IEntity user, DisposalRouterComponent component)

View File

@@ -158,7 +158,7 @@ namespace Content.Server.GameObjects.Components.Disposal
}
data.Text = Loc.GetString("Open Configuration");
data.IconTexture = "/Textures/Interface/VerbIcons/settings.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/settings.svg.192dpi.png";
}
protected override void Activate(IEntity user, DisposalTaggerComponent component)

View File

@@ -703,7 +703,7 @@ namespace Content.Server.GameObjects.Components.Disposal
data.Visibility = VerbVisibility.Visible;
data.Text = Loc.GetString("Flush");
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
}
protected override void Activate(IEntity user, DisposalUnitComponent component)

View File

@@ -666,7 +666,7 @@ namespace Content.Server.GameObjects.Components.GUI
data.Visibility = VerbVisibility.Visible;
data.Text = Loc.GetString("Set Outfit");
data.CategoryData = VerbCategories.Debug;
data.IconTexture = "/Textures/Interface/VerbIcons/outfit.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/outfit.svg.192dpi.png";
}
protected override void Activate(IEntity user, InventoryComponent component)

View File

@@ -472,7 +472,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
}
data.Text = Loc.GetString(component.Open ? "Close" : "Open");
data.IconTexture = component.Open ? "/Textures/Interface/VerbIcons/close.svg.96dpi.png" : "/Textures/Interface/VerbIcons/open.svg.96dpi.png";
data.IconTexture = component.Open ? "/Textures/Interface/VerbIcons/close.svg.96dpi.png" : "/Textures/Interface/VerbIcons/open.svg.192dpi.png";
}
void IExAct.OnExplosion(ExplosionEventArgs eventArgs)

View File

@@ -380,7 +380,7 @@ namespace Content.Server.GameObjects.Components.PDA
data.Text = Loc.GetString("Eject ID");
data.Visibility = component.IdSlotEmpty ? VerbVisibility.Invisible : VerbVisibility.Visible;
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
}
protected override void Activate(IEntity user, PDAComponent component)
@@ -402,7 +402,7 @@ namespace Content.Server.GameObjects.Components.PDA
data.Text = Loc.GetString("Eject Pen");
data.Visibility = component.PenSlotEmpty ? VerbVisibility.Invisible : VerbVisibility.Visible;
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
}
protected override void Activate(IEntity user, PDAComponent component)
@@ -423,7 +423,7 @@ namespace Content.Server.GameObjects.Components.PDA
}
data.Text = Loc.GetString("Toggle flashlight");
data.IconTexture = "/Textures/Interface/VerbIcons/light.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/light.svg.192dpi.png";
}
protected override void Activate(IEntity user, PDAComponent component)

View File

@@ -141,7 +141,7 @@ namespace Content.Server.GameObjects.Components.Power.ApcNetComponents.PowerRece
var heldItemName = Loc.GetString(handsComponent.GetActiveHand.Owner.Name);
data.Text = Loc.GetString("Insert {0}", heldItemName);
data.IconTexture = "/Textures/Interface/VerbIcons/insert.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/insert.svg.192dpi.png";
}
protected override void Activate(IEntity user, BaseCharger component)
@@ -180,7 +180,7 @@ namespace Content.Server.GameObjects.Components.Power.ApcNetComponents.PowerRece
var containerItemName = Loc.GetString(component._container.ContainedEntity.Name);
data.Text = Loc.GetString("Eject {0}", containerItemName);
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
}
protected override void Activate(IEntity user, BaseCharger component)

View File

@@ -193,7 +193,7 @@ namespace Content.Server.GameObjects.Components.Power
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";
}
if (component.Cell == null || !component.CanRemoveCell)

View File

@@ -51,7 +51,7 @@ namespace Content.Server.GameObjects.Components.Rotatable
data.CategoryData = VerbCategories.Rotate;
data.Text = Loc.GetString("Rotate clockwise");
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_cw.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_cw.svg.192dpi.png";
}
protected override void Activate(IEntity user, RotatableComponent component)
@@ -73,7 +73,7 @@ namespace Content.Server.GameObjects.Components.Rotatable
data.CategoryData = VerbCategories.Rotate;
data.Text = Loc.GetString("Rotate counter-clockwise");
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_ccw.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/rotate_ccw.svg.192dpi.png";
}
protected override void Activate(IEntity user, RotatableComponent component)

View File

@@ -193,7 +193,7 @@ namespace Content.Server.GameObjects.Components.Strap
}
data.Visibility = VerbVisibility.Visible;
data.IconTexture = buckle.BuckledTo == null ? "/Textures/Interface/VerbIcons/buckle.svg.96dpi.png" : "/Textures/Interface/VerbIcons/unbuckle.svg.96dpi.png";
data.IconTexture = buckle.BuckledTo == null ? "/Textures/Interface/VerbIcons/buckle.svg.96dpi.png" : "/Textures/Interface/VerbIcons/unbuckle.svg.192dpi.png";
data.Text = Loc.GetString(buckle.BuckledTo == null ? "Buckle" : "Unbuckle");
}

View File

@@ -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)

View File

@@ -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)

View File

@@ -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";
}
}

View File

@@ -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