Page 1 of 1

[2.0.9] Drag-placement of Items is queued behind Inventory

Posted: Wed Oct 23, 2024 6:37 pm
by eugenekay
Found some unexpected behavior while Drag-Place-ing a new Wall. I cannot tell if this is desired behaviour, an unexpected interaction between UI/character states, or a bug with Input handling?

Steps to reproduce:
- Have some items in your hand (example: Walls)
- Hold down the Left-mouse-button to place a Wall, near the middle of the screen
- Hold down a movement direction key to place a Line of Walls; observe that the Number decreases with each Wall placed / square travelled
- Push the E key to open the Inventory pane
- Character Movement continues, but the Count of Items does not decrease / Items are not Placed immediately!
- Push the E key again to close the Inventory
- Walls will instantly place along the travelled path (within build range), and the Count-in-Hand is instantly updated

This only occurs when the Cursor overlaps the Inventory Pane. If the cursor is outside of the Inventory while moving, then Items are placed normally. If the Left-mouse-button is released with the Inventory open, then the Inventory is closed, no instant-place occurs.


Expected behavior:
- Building would continue while Inventory is open / Count of Items continues to decrease while holding Left-mouse-button + Movement Key
- OR Build orders would not occur "behind" the inventory pane at all (IE, opening Inventory should interrupt the Drag-Place completely)

Edit: Updated Attachment to show more clearly

Re: [2.0.9] Drag-placement of Items is queued behind Inventory

Posted: Wed Oct 23, 2024 9:12 pm
by Rseding91
Thanks for the report however this is all working correctly. When the mouse is over the inventory world actions are blocked. But, because you kept the key held down the build action is still attempted but blocked. As soon as you close the inventory it resumes and tries to fill in any gaps from the last known build location.

Re: [2.0.9] Drag-placement of Items is queued behind Inventory

Posted: Wed Oct 23, 2024 10:26 pm
by eugenekay
This makes sense, mostly. In my demo video, I moved the character only in straight lines (using one direction key at a time). However, the resulting Wall pieces do not seem to follow the cursor/character’s movement path - the first section only extends 5 pieces (versus the expected 8), and the second wall is crooked (I expected a L shape).

Is it that the autoplace (on Inventory close) is drawing a line from the “last known build location” before the an inventory was opened directly to the current cursor position? And this occurs as one “action”, which happens once the Inventory pane is no longer blocking the Map? That seems like a reasonable behavior, just not what I expected from the keypresses. :-)

Thank you!