Verb icons now UI scale.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user