Implemented storage button on Inventory
Adds a small button on the bottom right of Storage items when inside the inventory. When the button is pressed it opens the Storage UI.
This commit is contained in:
@@ -262,6 +262,12 @@ namespace Content.Server.GameObjects
|
||||
if (playerentity == Owner)
|
||||
HandleInventoryMessage(msg);
|
||||
break;
|
||||
case OpenSlotStorageUIMessage msg:
|
||||
ItemComponent item = GetSlotItem(msg.Slot);
|
||||
ServerStorageComponent storage;
|
||||
if (item.Owner.TryGetComponent(out storage))
|
||||
storage.OpenStorageUI(Owner);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user