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,
}
}

View File

@@ -16,7 +16,7 @@ namespace Content.Client.GlobalVerbs
{
data.Visibility = VerbVisibility.Visible;
data.Text = Loc.GetString("Examine");
data.IconTexture = "/Textures/Interface/VerbIcons/examine.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/examine.svg.192dpi.png";
}
public override void Activate(IEntity user, IEntity target)

View File

@@ -26,7 +26,7 @@ namespace Content.Client.GlobalVerbs
data.Text = "View Variables";
data.CategoryData = VerbCategories.Debug;
data.IconTexture = "/Textures/Interface/VerbIcons/vv.svg.96dpi.png";
data.IconTexture = "/Textures/Interface/VerbIcons/vv.svg.192dpi.png";
}
public override void Activate(IEntity user, IEntity target)

View File

@@ -147,7 +147,8 @@ namespace Content.Client.UserInterface.ContextMenu
},
new TextureRect
{
Texture = IoCManager.Resolve<IResourceCache>().GetTexture("/Textures/Interface/VerbIcons/group.svg.96dpi.png"),
Texture = IoCManager.Resolve<IResourceCache>().GetTexture("/Textures/Interface/VerbIcons/group.svg.192dpi.png"),
TextureScale = (0.5f, 0.5f),
Stretch = TextureRect.StretchMode.KeepCentered,
}
}