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:
ShadowCommander
2019-07-29 13:32:04 -07:00
parent bb20243b05
commit d9628d39eb
7 changed files with 56 additions and 7 deletions

View File

@@ -75,5 +75,13 @@ namespace Content.Client.GameObjects
Owner.SendEquipMessage(control.Slot);
}
protected void OpenStorage(BaseButton.ButtonEventArgs args)
{
args.Button.Pressed = false;
var control = (InventoryButton)args.Button.Parent;
Owner.SendOpenStorageUIMessage(control.Slot);
}
}
}