This past week I updated to the new Beta 16 of Unity 5 and have been also house hunting.. despite that I got a really nice amount of work on the players inventory system for the Rise of Dagon!
So things are looking really good at the moment but I need to put the code together on the back end for this to all be useable .
This week I focused on the layout and trying to get it to scale right at different resolutions.
I also watched a few tutorials which were generally decent but I noticed that people don't seem to know about the ability to add Layout components to your UI.
On the left portion where the 'paper doll' slots for inventory is I have manually positioned the inventory slots; but on the right hand side the grid of actual inventory slots is done with a Unity Grid Layout component.
This is super handy; you do not have to spend a lot of time messing around with making things line up in code. You add the component and put in a few parameters .. and bam! You have a working grid layout.
There is also a nice horizontal and vertical layout components; the menu bar at the bottom in the shown screenshot uses the horizontal layout!
Definitely check those out if you are using the new 4.6 unity GUI.
Other than that I will continue working on the inventory this week hopefully with the ability to drag & drop icons between slots this next week. I have never done that before so it may take a little work. .Its also not something in the new UI so I'll have to probably make my own IDragable interface or something to that effect.
As a side note I am at least tentatively going to do Ludum Dare 31
I should probably post a series of posts on my blog here and posts on the wordpress blog there as well as I go along.
Thanks for reading, see you next week!
No comments:
Post a Comment