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

@@ -365,7 +365,8 @@ namespace Content.Client.GameObjects.EntitySystems
(_icon = new TextureRect
{
MinSize = (32, 32),
Stretch = TextureRect.StretchMode.KeepCentered
Stretch = TextureRect.StretchMode.KeepCentered,
TextureScale = (0.5f, 0.5f)
}),
(_label = new Label()),
// Padding
@@ -424,6 +425,7 @@ namespace Content.Client.GameObjects.EntitySystems
(_icon = new TextureRect
{
MinSize = (32, 32),
TextureScale = (0.5f, 0.5f),
Stretch = TextureRect.StretchMode.KeepCentered
}),
@@ -438,7 +440,8 @@ namespace Content.Client.GameObjects.EntitySystems
new TextureRect
{
Texture = IoCManager.Resolve<IResourceCache>()
.GetTexture("/Textures/Interface/VerbIcons/group.svg.96dpi.png"),
.GetTexture("/Textures/Interface/VerbIcons/group.svg.192dpi.png"),
TextureScale = (0.5f, 0.5f),
Stretch = TextureRect.StretchMode.KeepCentered,
}
}