Iulii Oneshko
Iulii Oneshko
When I fill the inventory completely and then clear it using sort(), then after that I cannot interact with the inventory. Nothing can be moved there and nothing can be...
I can interact with inventory only after this: var protoset = craftGrid.item_protoset var size = craftGrid.size craftGrid.reset() craftGrid.item_protoset = protoset craftGrid.size = size
> > clear it using sort() > > This is kinda weird, `sort()` should only reorder the items and should not clear the inventory:  [  ](https://private-user-images.githubusercontent.com/11254996/302024765-e98cc073-2ac0-456c-b245-da4e0cf3c4b2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDY5NjIzNzgsIm5iZiI6MTcwNjk2MjA3OCwicGF0aCI6Ii8xMTI1NDk5Ni8zMDIwMjQ3NjUtZTk4Y2MwNzMtMmFjMC00NTZjLWIyNDUtZGE0ZTBjZjNjNGIyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjAzVDEyMDc1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU0NjE1MGQ4Njk4ZWEyODhkZTllOThiYWZjYzIwZTA0OTAwZDY2MDM3ZDMyMDdiOWJhOTY1NmViMTM3N2U5MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aWcQUH12TBgbjuD4gicb_sxNXf50xDlUiPDDDqdyKJI) [ ](https://private-user-images.githubusercontent.com/11254996/302024765-e98cc073-2ac0-456c-b245-da4e0cf3c4b2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDY5NjIzNzgsIm5iZiI6MTcwNjk2MjA3OCwicGF0aCI6Ii8xMTI1NDk5Ni8zMDIwMjQ3NjUtZTk4Y2MwNzMtMmFjMC00NTZjLWIyNDUtZGE0ZTBjZjNjNGIyLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjAzVDEyMDc1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU0NjE1MGQ4Njk4ZWEyODhkZTllOThiYWZjYzIwZTA0OTAwZDY2MDM3ZDMyMDdiOWJhOTY1NmViMTM3N2U5MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aWcQUH12TBgbjuD4gicb_sxNXf50xDlUiPDDDqdyKJI)...
Can you show the code please?
[example](https://github.com/peter-kish/gloot/assets/35423496/4bcbbe9f-4464-48d9-ba43-d32ec6c0e757) Actually I have two problems: 1 - no way to interact with inventory after .clear() 2. Some inventory cells cannot be filled from another inventory. You must first move...
```gdscript extends Control @onready var brewButton = $brewMenuPanel/brewButton @onready var craftGrid = $"../../inventoryWorks/craftInventoryGrid" @onready var inventory = $"../../inventoryWorks/InventoryGrid" @onready var riskBar = $brewMenuPanel/riskVarLabel @onready var succesBar = $brewMenuPanel/succesVarLabel var riskRate...
For reasons unknown to me, clear() now works as expected upd And now the mistake has happened again
What can be done with the bug that filling the grid_inventory by dragging item is impossible? - one cell remains inactive.