Hello,
Im creating a local multiplayer game based on real time battles.
I would like to use ORK inventory menu screen and add a custom item selector to navigate because i want to call a game event or script on the item selected and pass it as selected data.
Is this can be done?
Regards
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Does the UI of the screen uses unity event system to move between slots?
Can i identify the item if i select the slot?
Is there an unique identifier of the item inside the inventory?
Thanks for.your help GIL.
You could get the currently selected item when using item previews (Menus > Menu Settings > Status Preview Settings):
if(ORK.GUI.PreviewShortcut != null)
{
ItemShortcut item = (ItemShortcut)ORK.GUI.PreviewShortcut.Shortcut;
}
Otherwise there's currently no easy way to get the selected item from the inventory menu screen - you'd have to change that in the code.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!