Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrelated inventory squares are highlighted when squares are selected #216

Open
BryceBarbara opened this issue Jun 23, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@BryceBarbara
Copy link

Cogito and Godot Engine Version:
The Cogito pulled from master - v4.3.beta1.mono.official [a4f2ea91a]

Description:
When using a mouse, selecting an object's inventory square (populated or not) causes a corresponding player's inventory slot to highlight.

I believe this line of code is the culprit. It appears it might need a check above it to see if the player is using a mouse/gamepad.

Unrelated to the bug, I think InputHelper could use a is_using_mouse() method that does the device_index == -1 check. That would remove the need to know the implementation details of InputHelper.

Reproduction steps:

  1. Open an object's inventory
  2. Click on some squares
  3. See the player's inventory highlight

Expected behavior:
I would expect nothing to happen to any of the inventory squares except for the one I am interacting with.

Screenshots:

Godot_v4.3-beta1_mono_win64_wGiPNOtmBO.mp4
@BryceBarbara BryceBarbara added the bug Something isn't working label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant