carenalgas / popochiu

Godot plugin to make point-and-click adventure games, inspired by tools like Adventure Game Studio and PowerQuest.
https://carenalgas.github.io/popochiu/
MIT License
186 stars 19 forks source link

Inventory item cursor disappears after it is used #230

Closed mapedorr closed 5 months ago

mapedorr commented 5 months ago

Bug description

When using inventory items on objects, the cursor dissapears after the first use perhaps the item is still selected. It can be seen in the description of the action (or command) while hovering an object.

https://github.com/carenalgas/popochiu/assets/4536477/6a6edc8b-b1a8-48a4-98e9-13409fbdde33

Steps to reproduce

  1. Create an inventory item and make it appear in the inventory (could be by marking in it as "Start with it").
  2. Run the game and select the inventory item. The cursor will use the texture of the item.
  3. Click on a Prop, a Hotspot or a Character. The game will show the fallback message or execute the logic for the action.
  4. The cursor will turn invisible perhaps the hover text description still shows that the item is selected and will be used when interacting with objects.

Expected vs observed behavior

The texture of the cursor should keep showing the inventory item until one deselects it.

Environment information (please complete):