(54ae135f5) Items can be dragged and dropped directly from the inventory into containers without having to select the container first.

This commit is contained in:
Joonas Rikkonen
2019-03-28 18:11:40 +02:00
parent a351ffcbda
commit f51c9c14df
7 changed files with 102 additions and 12 deletions
@@ -1652,7 +1652,8 @@ namespace Barotrauma
#if CLIENT
if (isLocalPlayer)
{
if (GUI.MouseOn == null && !CharacterInventory.IsMouseOnInventory())
if (GUI.MouseOn == null &&
(!CharacterInventory.IsMouseOnInventory() || CharacterInventory.DraggingItemToWorld))
{
if (findFocusedTimer <= 0.0f || Screen.Selected == GameMain.SubEditorScreen)
{