Devlog - Inventory UI/Display
Status Report: For once I’m not having difficulties.
Jokes aside, I created most of the display functionality for the UI in about 2 hours. I was having a harder time coming up with how to make it work. To keep the idea simple the inventory and the UI for the inventory are 2 separate items. They can interact with each other but for the most part the UI simply wants to know what is in the inventory so that it can look up what to tell the player.
For example, when the player picks up a log, the log is put in an array of all the items the player is supposed to have. This mirrors how I set up the UI half where I have an array of slots for the items to be displayed in. All I needed was the description of the item entailing what item the player had, what amount of said item, and what does the item look like.
The final thing I was able to finish up is setting how many item slots the player should have. The inventory has a capacity that judges how big the array is allowed to be. I simply needed to attach that capacity to a method controlling how many item slots are shown to the player. The set up in place should make it so that when the inventory increases in size so do the amount of visible slots displayed.
Get Noble Roots
Noble Roots
Status | In development |
Authors | PentaCogStudios, Tyrano, shawn0173, ADiscount4U, TarrellC246 |
Genre | Simulation |
Tags | Fantasy, Farming |
More posts
- Devlog - Hot Bar/Inventory UI - Douglas Strange2 days ago
- Devlog - Inventory UI/Particle System - Douglas Strange14 days ago
- Devlog - Inventory UI - Douglas Strange16 days ago
- Devlog - Inventory - Douglas Strange21 days ago
- Devlog - 10/24/24 - Transition Script28 days ago
- Devlog - Douglas Strange -10/24/2428 days ago
- DevLog - Tarrell Charles - 10/24/2024 - Combination input cheat code / Input sys...28 days ago
- Devlog - Tyler Linton -10/24/2428 days ago
- Devlog - Shawn Newlin - 10/24/24 - Tool Selection UI28 days ago
Leave a comment
Log in with itch.io to leave a comment.