Issues with 'CtrlInventory' & following container focus #304
Replies: 2 comments 1 reply
-
|
After spending more time using GLoot, it appears that the main issue I'm facing is that the plugin's code is built around mouse inputs rather than key inputs. I noticed this issue a while back, but I haven't tried working around it yet; once I do, I'll post the code I manage to patch together for anyone else who needs it. Edit: For the issue of the Items List loading in at the bottom after clicking the ItemsTab a second time, I simply manipulated where the scrollbar should be via code: @onready var items_scroll_bar = %ScrollContainer.get_v_scroll_bar(), func _on_items_tab_pressed() -> void: I still haven't figured out how to get the scrollbar to follow focus while navigating the item menu with key inputs though ☠️ |
Beta Was this translation helpful? Give feedback.
-
|
I'm not 100% sure I understand the complete scene setup, but P.S - Do you even need a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! First and foremost, I'd like to thank everyone who contributed to the development of this project. As the title suggests, I've been experiencing issues with the 'CtrlInventory' node, specifically that when used as a list of items with a 'ScrollContainer' for a parent, the list's scrollbar fails to follow the focus of the selected item. I have 'Follow_Focus' enabled via the 'ScrollContainer' as well, and the issue still persists.
Once I noticed 'Follow_Focus' was not working as intended, I tried manipulating the scrollbar in question via code, but that did not solve the issue I was having either, although I'm not particularly skilled with Godot just yet so I'm not 100% confident that this is purley an issue with GLoot. But I am at a complete loss at this point, and if anyone knows of a potential solution, I would appreciate it so so much!
P.S., It is also worth mentioning that when I click on the first item in the items list with my mouse, the scrollbar defaults to the very bottom of the list, instead of staying at the top, where the focused item is. I have no idea why; there is no code I have written that could be causing this. All I have scripted is functionality for the GUI containers, so that the current tab visible changes depending on whichever tab has been pressed, via the 'TabContainer'. If you have any questions that could help lead to resolving this issue, please feel free to ask and I will answer to the best of my abilities. Thank you!
Edit: I forgot to mention, I am currently using Godot 4.4.1 and GLoot 3.0.1
Beta Was this translation helpful? Give feedback.
All reactions