|
Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Items GUI compatible with the Virtual UI Hub features. Usage of implemented components allows to integrated specific Item related components into cross-windows layouts.
ItemSelectionEventRelay is a VH Relay that listens for selection of ItemGUIElement.
Read more: Elements Collection
Explore API: Doloro.InvetorySystem.UI.VirtualHub.ItemSelectionEventRelay
To configure events sharing it's enough to add the relay to the same object as GUI elements collection filled with ItemGUIELement or its derived alternatives.
Such collection will share enabled event toward parental Virtual UI Hub that will forward them to assigned listeners.
AGUIElementsCollection derived control's game object. (Example: ItemsGUICollection)onSelected messages share.VirtualGUIHub to root GUI element of the common layout.Listens selection of Item shared as a message Virtual UI Hub hub with OnSelected key.
Sets the content of shared inspector to ContentHolder.content property.
Explore API: Doloro.InvetorySystem.UI.VirtualHub.ItemUIHubListener
To connect Item GUI control to Virtual UI Hub you just need to add it on the same object you have to bond.
As soon as the listener added it will listen for OnSelected from a parental VirtualUIHub component.
When the message occurred and its shares IContentInspector{StoragesDatabase.ItemContainer} as first argument, the shared inspector's content will be applied as the content to bonded ItemGUIElement.