namespace Content.Client.UserInterface.Systems.Storage.Controls;
-public sealed class ItemGridPiece : Control
+public sealed class ItemGridPiece : Control, IEntityControl
{
private readonly IEntityManager _entityManager;
private readonly StorageUIController _storageController;
var actualSize = new Vector2(boxSize.X + 1, boxSize.Y + 1);
return actualSize * new Vector2i(8, 8);
}
+
+ public EntityUid? UiEntity => Entity;
}
public enum ItemGridPieceMarks
return false;
// we don't check if the user can access the storage entity itself. This should be handed by the UI system.
- return _ui.IsUiOpen(target, StorageComponent.StorageUiKey.Key, user);
+ return _ui.IsUiOpen(container.Owner, StorageComponent.StorageUiKey.Key, user);
}
/// <summary>