Adds explicit inventory window.

This commit is contained in:
Pieter-Jan Briers
2019-07-20 13:11:42 +02:00
parent 5f276cd39d
commit f5d319bc3a
8 changed files with 192 additions and 31 deletions

View File

@@ -23,10 +23,10 @@ namespace Content.Client.GameObjects.EntitySystems
var inputSys = EntitySystemManager.GetEntitySystem<InputSystem>();
inputSys.BindMap.BindFunction(ContentKeyFunctions.OpenCharacterMenu,
new PointerInputCmdHandler(HandleOpenCharacterMenu));
InputCmdHandler.FromDelegate(s => HandleOpenCharacterMenu()));
}
private void HandleOpenCharacterMenu(in PointerInputCmdHandler.PointerInputCmdArgs args)
private void HandleOpenCharacterMenu()
{
if (_playerManager.LocalPlayer.ControlledEntity == null
|| !_playerManager.LocalPlayer.ControlledEntity.TryGetComponent(out CharacterInterface characterInterface))