0
Answered

Inventory Module - HotBar

Jay Bacal 5 months ago in Stats updated by Marti (Lead Developer) 5 months ago 1

1) Is there a way to display the item in front of the HotBar container when dragging the item into a HotBar slot?  Currently, the item disappears behind the HotBar container until the mouse button is released.

2) Is there a way to create a setting whereby left clicking on a item in the HotBar uses the item instead of sending the item back into the inventory.  This would be helpful in mobile games where typing a number on a keyboard is not possible.

3) Please add the possibility to display the number of items (health potions for example) you possess above the item icon in the Hotbar so you know how many you have left after using one.

4) Also it would be great to be able to disable HotBar items for a period of time so that spells (for example) can be recharged before reusing them.

Thanks,

Jay

Unity version:
2019.3.10f1
Game Creator version:
1.1.6
GOOD, I'M SATISFIED

Thanks!

Satisfaction mark by Jay Bacal 5 months ago
Answered

Hi Jay;

1) Is there a way to display the item in front of the HotBar container when dragging the item into a HotBar slot? Currently, the item disappears behind the HotBar container until the mouse button is released.

Yes. Simply modify the Hotbar object. At the root you'll see a Canvas object with a Sort Order property. Change that to -1 if you want every other UI element to appear above. Same applies to any other UI object.

2) Is there a way to create a setting whereby left clicking on a item in the HotBar uses the item instead of sending the item back into the inventory. This would be helpful in mobile games where typing a number on a keyboard is not possible.

Yes. The Hotbar is in fact a component that has nothing to do with the click behavior. Enter the Hotbar prefab (or even better, duplicate it and place the copy outside the Plugins/ folder so it won't get overwritten next time you update) and look for a Button option. Change the Action to Unequip to whatever thing you want to do when clicking the Hotbar button.

3) Please add the possibility to display the number of items (health potions for example) you possess above the item icon in the Hotbar so you know how many you have left after using one.

Definitely! It crossed my mind but forgot to add it :-) I'm opening a ticket for the next update.

4) Also it would be great to be able to disable HotBar items for a period of time so that spells (for example) can be recharged before reusing them.


This is something I plan to do, but will require some time, as I want cooldowns to be more than just a simple timer.

Thanks for the ideas!