Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.InvetorySystem.UI.Controls.ItemFeatureGUIElement Class Reference

Detailed Description

GUI element that receives AItemFeature as content and display it at UI. Also can handle as content AssetProperty instances.

AssetProperty allowed as content because item characteristic or its flags can be considered as feature.

Inheritance diagram for Doloro.InvetorySystem.UI.Controls.ItemFeatureGUIElement:
Collaboration diagram for Doloro.InvetorySystem.UI.Controls.ItemFeatureGUIElement:

Classes

class  AssetPropertyAdapter
 AItemFeature connected to the AssetProperty instance. More...
 

Public Member Functions

void Read (AssetProperty property)
 Loads content in manual way form the shared AssetProperty instead of direct connect with the content; More...
 
override void DropGUIContent ()
 Drops UI member to clear state. More...
 
override void ApplyGUIContent ()
 Loads content's data to UI. More...
 
virtual void UpdateGUI ()
 Updates bonded GUI elements along with content. More...
 

Public Attributes

UnityEngine.UI.Text titleLabel
 Label for property's title display.
 
UnityEngine.UI.Text descriptionLabel
 Label for property's description display.
 

Protected Member Functions

override void OnDestroy ()
 Finalizes the object.
 
void ReleaseTemp ()
 Releases temporary allocated objects.
 
virtual void OnContentChanged ()
 Occurs when content property modified.
 

Properties

override AItemFeature content [get, set]
 Current selected/bonded item.
 
AssetPropertyAdapter TempSource [get]
 Temporal feature as source.
 
Action< ContentType > ContentChanged
 Occurs when content has been changed.
 

Member Function Documentation

◆ ApplyGUIContent()

override void Doloro.InvetorySystem.UI.Controls.ItemFeatureGUIElement.ApplyGUIContent ( )
virtual

◆ DropGUIContent()

override void Doloro.InvetorySystem.UI.Controls.ItemFeatureGUIElement.DropGUIContent ( )
virtual

◆ Read()

void Doloro.InvetorySystem.UI.Controls.ItemFeatureGUIElement.Read ( AssetProperty  property)

Loads content in manual way form the shared AssetProperty instead of direct connect with the content;

Parameters
propertyProperty that will be used as data source.

' Creates TempSource instance and applies it as content.

◆ UpdateGUI()

virtual void Doloro.UIEngine2.Controls.AContentInspectorGUIElement< ContentType >.UpdateGUI ( )
virtualinherited

Updates bonded GUI elements along with content.

Calls DropGUIContent in case if content is null. Calls ApplyGUIContent otherwise. Calls the same handler for connected AContentInspectorExtension<T> instances.


The documentation for this class was generated from the following file: