An inventory system originally made for my game 'Tale of Akz', it is extendible, as I did it by making hot-bar, merchant-system, bartender-system, shipyard, and so on.
I made the inventory as a separate project and wrote a tutorial on how ot create it on my site here.
Feel free to fork it, make changes and use in your game. Consider supporting me if you believe it helped.