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

Inventory System / Grid based: Item graphic doesn't get position correctly on move (game pad) #205

Open
Phazorknight opened this issue Jun 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Phazorknight
Copy link
Owner

Cogito and Godot Engine Version:
beta 202405.15
Godot 4.2.1 stable

Description:
Using game pad, when moving an item in the inventory, the inital position of the grabbed item graphic always centers on the first slot in the inventory and only updates once the focus changes to a different slot.

Reproduction steps:

  1. Pick up any item.
  2. Open inventory.
  3. Move item to a slot in the inventory that is not the very first slot top left.
  4. When selecting the item using a game pad, and then pressing the "move" button, the grabbed item graphic gets positioned at the center of the first slot top left.
    Note that the highlighted slot is correct.

Expected behavior:
I expect the grabbed item graphic to be positioned at the center of the slot I had the cursor at when I grabbed the item.

My guess is that this might be happening in inventory_interface.gd around lines 176 - 185, but wasn't able to fully pin it down.

@Phazorknight Phazorknight added the bug Something isn't working label Jun 1, 2024
@BryceBarbara
Copy link

Just to provide a visual example of it:

Godot_v4.3-beta1_mono_win64_2ZrzWMm6Qr.mp4

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

2 participants