Plates & Cash gridinv visuals (#24075)

This commit is contained in:
Psychpsyo
2024-01-14 17:44:17 +01:00
committed by GitHub
parent 374260c49e
commit a747e6dda4
10 changed files with 37 additions and 2 deletions

View File

@@ -157,8 +157,8 @@ public sealed class ItemGridPiece : Control
}
// typically you'd divide by two, but since the textures are half a tile, this is done implicitly
var iconPosition = new Vector2((boundingGrid.Width + 1) * size.X ,
(boundingGrid.Height + 1) * size.Y);
var iconPosition = new Vector2((boundingGrid.Width + 1) * size.X + itemComponent.StoredOffset.X * 2,
(boundingGrid.Height + 1) * size.Y + itemComponent.StoredOffset.Y * 2);
var iconRotation = Location.Rotation + Angle.FromDegrees(itemComponent.StoredRotation);
if (itemComponent.StoredSprite is { } storageSprite)