правочки

This commit is contained in:
BIGZi0348
2024-12-02 20:15:00 +03:00
parent ef4d440bf7
commit 38e39d7ccf
7 changed files with 9 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
using System.Numerics; // Updated before upstream
using System.Numerics;
using Content.Shared.Ghost.Roles;
using Robust.Client.AutoGenerated;
using Robust.Client.GameObjects;
@@ -10,13 +10,13 @@ using Robust.Shared.Utility;
namespace Content.Client.UserInterface.Systems.Ghost.Controls.Roles
{
[GenerateTypedNameReferences]
public sealed partial class GhostRoleButtonsBox : BoxContainer
public sealed partial class GhostRoleButtonsBox : BoxContainer // WD Edit ahead of wizden upstream
{
private SpriteSystem _spriteSystem;
public event Action<GhostRoleInfo>? OnRoleSelected;
public event Action<GhostRoleInfo>? OnRoleFollow;
public GhostRoleButtonsBox(bool hasAccess, FormattedMessage? reason, IEnumerable<GhostRoleInfo> roles, SpriteSystem spriteSystem)
public GhostRoleButtonsBox(bool hasAccess, FormattedMessage? reason, IEnumerable<GhostRoleInfo> roles, SpriteSystem spriteSystem) // WD Edit ahead of wizden upstream
{
RobustXamlLoader.Load(this);
_spriteSystem = spriteSystem;
@@ -42,7 +42,7 @@ namespace Content.Client.UserInterface.Systems.Ghost.Controls.Roles
{
TextureScale = new Vector2(0.4f, 0.4f),
Stretch = TextureRect.StretchMode.KeepCentered,
Texture = _spriteSystem.Frame0(new SpriteSpecifier.Texture(new ("/Textures/Interface/Nano/lock.svg.192dpi.png"))),
Texture = _spriteSystem.Frame0(new SpriteSpecifier.Texture(new("/Textures/Interface/Nano/lock.svg.192dpi.png"))),
HorizontalExpand = true,
HorizontalAlignment = HAlignment.Right,
});