Hi! I've currently nearly completed my inventory system, but having problems figuring out how to display correctly.
I created two classes for inventory. One for each individual item (item, then quantity of that item), and one for the entire inventory itself.
I then created a scene that utilizes this script. The scene contains a panel and a grid container.
I instanced this in an autoload singleton so the player's inventory will always be available.
Just so you're aware, the "inventory" part of the game works. As in all items are successfully stored. The problem is when I need to display the players inventory I'm not sure how to do this.
Since the scene instance of the stored inventory is saved in an autoload singleton, how can I then display / show that exact scene whenever I want?
Thanks!
P.S. I have tried stupid things like PlayerData.player_inventory.show() but that didn't seem to work. Not sure what else I could do.