Remove usages of obsolete SpriteView.Sprite.set() (#19500)
This commit is contained in:
@@ -125,16 +125,17 @@ namespace Content.Client.RoundEnd
|
||||
VerticalExpand = true,
|
||||
};
|
||||
|
||||
if (_entityManager.TryGetComponent(playerInfo.PlayerEntityUid, out SpriteComponent? sprite))
|
||||
if (_entityManager.HasComponent<SpriteComponent>(playerInfo.PlayerEntityUid))
|
||||
{
|
||||
hBox.AddChild(new SpriteView
|
||||
var spriteView = new SpriteView
|
||||
{
|
||||
Sprite = sprite,
|
||||
OverrideDirection = Direction.South,
|
||||
VerticalAlignment = VAlignment.Center,
|
||||
SetSize = new Vector2(32, 32),
|
||||
VerticalExpand = true,
|
||||
});
|
||||
};
|
||||
spriteView.SetEntity(playerInfo.PlayerEntityUid);
|
||||
hBox.AddChild(spriteView);
|
||||
}
|
||||
|
||||
if (playerInfo.PlayerICName != null)
|
||||
|
||||
Reference in New Issue
Block a user