Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Items Virtual Hub extension

About

Items GUI compatible with the Virtual UI Hub features. Usage of implemented components allows to integrated specific Item related components into cross-windows layouts.


Item Selection Event Relay

ItemSelectionEventRelay is a VH Relay that listens for selection of ItemGUIElement.

Read more: Elements Collection
Explore API: Doloro.InvetorySystem.UI.VirtualHub.ItemSelectionEventRelay


Usage

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.

  1. Add to the AGUIElementsCollection derived control's game object. (Example: ItemsGUICollection)
  2. Enable onSelected messages share.
  3. Add VirtualGUIHub to root GUI element of the common layout.

Item UI Hub Listener

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


Usage

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.