Results 57 comments of Peter Kiš

So far, I can only assume that it has something to do with the `_sort_if_needed()` method inside `InventoryGrid`.

> @peter-kish one weird thing I've noticed... When I hit play in the remote scene the inventory size is 10x10 but I've set it in all scenes for it to...

> So other thing I've noticed is that when I set an inventory for the CtrlInventoryGridEx via script, unset it and set it again... the sort messes up... also if...

> clear it using sort() This is kinda weird, `sort()` should only reorder the items and should not clear the inventory: ![sort](https://github.com/peter-kish/gloot/assets/11254996/e98cc073-2ac0-456c-b245-da4e0cf3c4b2) Can you share some code, or even better,...

Hmm.. I tried it again with `clear()`, but I'm still unable to reproduce the issue: ![clear](https://github.com/peter-kish/gloot/assets/11254996/b6839bde-2e23-4f0d-a384-8ce0cb236092)

Sure, i just modified one of the examples: ```gdscript extends Control @onready var ctrl_inventory_left: CtrlInventoryGrid = $VBoxContainer/HBoxContainer/VBoxContainer/PanelContainer/CtrlInventoryGridLeft @onready var ctrl_inventory_right: CtrlInventoryGrid = $VBoxContainer/HBoxContainer/VBoxContainer2/PanelContainer2/CtrlInventoryGridRight @onready var btn_add_left: Button = $VBoxContainer/HBoxContainer/VBoxContainer/BtnAddLeft @onready...

Weird... I haven't seen similar issues before. Any chance you could put together a small example that has the same problems, so I can look deeper into it?

Hey, sorry for the late reply. I don't see anything wrong with the code you posted, though of course, I wasn't able to debug it. One more thing you can...

@LeeWannacott Oh, this actually looks like something I fixed in v2.4.1. There's still no 2.4.1 release because I'm still polishing things, but it is available on the [dev_v2.4.1](https://github.com/peter-kish/gloot/tree/dev_v2.4.1) branch and...

> Thanks for example that's helpful, I don't know if I need to override if I use ItemSlot, although it might be better/ less work than having to maintain a...