deep-entertainment / issues

Issue tracker for deep Entertainment projects
1 stars 0 forks source link

[EGOVENTURE] Check cursor showing inventory cursor when inventory is disabled #34

Closed ThmsKnz closed 1 year ago

ThmsKnz commented 1 year ago

Please make sure you talk to the community before creating an issue.

Describe the bug The issue occurs when the inventory is disabled in a scene and the mouse cursor is not hidden. When moving the cursor to the top border the cursor switches to the default cursor used in the inventory (as if the inventory would be visible).

Reason is that in check_cursor.gd it checks all child nodes of '/root/Inventory/Canvas/InventoryAnchor/Panel', but the visibility is set for the Panel when the inventory get disabled.

The correction is to start check cursor at node '/root/Inventory/Canvas/InventoryAnchor'. Then the hidden Panel and its children are excluded from the CheckCursor analysis when the inventory is disabled.

I'll add a pull request for the correction.