Tuesday, July 24, 2018

More crafting

Woweee wow wow. I got the placeholder crafting interface to pull data from the crafting.xml, which is pretty cool. I followed the same code design as I did for the inventory; view, controller, and data.


The first crafting station (Stella's Cauldron) is just a test one, so it has items that can't actually be crafted, which is why it has that weird bar in the middle. And the other station has ones that have ingredients but no icons for them yet.

There's a bug when I had on my toggle code to enable/disable the crafting UI (it's been disabled for now) where I have to click on something twice in order to hide/show the interface. Need to figure that out. Or you just can't toggle the crafting menu on/off with the button, can only turn it on with the crafting button and have to close it with the "x" button I'll add later.

Can't actually craft anything yet. I need to figure out how to have the inventory system communicate with the crafting system.

Here's a WIP of the crafting menu design:


I'm going to make the background look like a wooden table from the face down. The list of options on the left will look like a scroll on the table. The potion bottle will also be something that changes based on the crafting station you're at (potion bottle for a generic station, sewing machine for clothing, mixing bowl for cooking, and so on.)

No comments:

Post a Comment