Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.InvetorySystem.UI.Extension.AItemFeatureGUIExtension< FeatureType > Class Template Reference

Detailed Description

GUI extension for ItemGUIElement. Provides automatically tracking of AItemFeature modification, that leads to call on API implemented message handlers.

Template Parameters
FeatureTypeType of the managing AItemFeature
Type Constraints
FeatureType :AItemFeature 
Inheritance diagram for Doloro.InvetorySystem.UI.Extension.AItemFeatureGUIExtension< FeatureType >:
Collaboration diagram for Doloro.InvetorySystem.UI.Extension.AItemFeatureGUIExtension< FeatureType >:

Public Member Functions

sealed override void ApplyGUIContent ()
 Sealed handler that controls internal logic. Use OnItemModified(StoragesDatabase.ItemContainer) instead. More...
 
sealed override void DropGUIContent ()
 Sealed handler that controls internal logic. Use OnItemNotSelected(StoragesDatabase.ItemContainer) instead. More...
 

Protected Member Functions

override void OnDestroy ()
 Releases component from events subscriptions. More...
 
virtual void OnFeatureModified (FeatureType feature)
 Handler that calls when bonded feature has been modified and caused AEntityFeature.Modified event. More...
 
virtual void OnItemRelease (StoragesDatabase.ItemContainer toRelease)
 Occurs before new Item apply and allows to release data bonded with previously used instance. More...
 
virtual void OnItemNotSelected ()
 Handler that calls when inspector content is null. Should be used to clear GUI. More...
 
virtual void OnItemModified (StoragesDatabase.ItemContainer source)
 Handler that calls when source item data container data has been modified. More...
 

Package Functions

override void ApplyGUIContentInternal ()
 Handler that calls when inspector changed its content and requesting loading to the GUI a new one related to relevant source. Content always not null. More...
 

Properties

FeatureType BondedFeature [get]
 Buffer that holds currently bond feature.
 
AContentInspectorGUIElement< ContentType > inspector [get]
 Inspector to extend. More...
 

Member Function Documentation

◆ ApplyGUIContent()

sealed override void Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.ApplyGUIContent ( )
virtualinherited

◆ ApplyGUIContentInternal()

override void Doloro.InvetorySystem.UI.Extension.AItemFeatureGUIExtension< FeatureType >.ApplyGUIContentInternal ( )
packagevirtual

Handler that calls when inspector changed its content and requesting loading to the GUI a new one related to relevant source. Content always not null.

AInspectorGUIElement.content property.

Reimplemented from Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.

◆ DropGUIContent()

sealed override void Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.DropGUIContent ( )
virtualinherited

Sealed handler that controls internal logic. Use OnItemNotSelected(StoragesDatabase.ItemContainer) instead.

Implements Doloro.UIEngine2.Controls.AContentInspectorExtension< StoragesDatabase.ItemContainer >.

◆ OnDestroy()

override void Doloro.InvetorySystem.UI.Extension.AItemFeatureGUIExtension< FeatureType >.OnDestroy ( )
protectedvirtual

Releases component from events subscriptions.

Reimplemented from Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.

◆ OnFeatureModified()

virtual void Doloro.InvetorySystem.UI.Extension.AItemFeatureGUIExtension< FeatureType >.OnFeatureModified ( FeatureType  feature)
protectedvirtual

Handler that calls when bonded feature has been modified and caused AEntityFeature.Modified event.

Using instead of sealed ApplyGUIContent handler.

Parameters
featureModified feature reference.

◆ OnItemModified()

virtual void Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.OnItemModified ( StoragesDatabase.ItemContainer  source)
protectedvirtualinherited

Handler that calls when source item data container data has been modified.

Parameters
sourceData container managed with GUI inspector.

Use to update GUI along with updated data.

Reimplemented in Doloro.InvetorySystem.UI.Extension.ItemFeaturesListGUIExtension, and Doloro.InvetorySystem.UI.Extension.ItemStackWeightGUIExtension.

◆ OnItemNotSelected()

virtual void Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.OnItemNotSelected ( )
protectedvirtualinherited

Handler that calls when inspector content is null. Should be used to clear GUI.

Reimplemented in Doloro.InvetorySystem.UI.Extension.ItemFeaturesListGUIExtension, and Doloro.InvetorySystem.UI.Extension.ItemStackWeightGUIExtension.

◆ OnItemRelease()

virtual void Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.OnItemRelease ( StoragesDatabase.ItemContainer  toRelease)
protectedvirtualinherited

Occurs before new Item apply and allows to release data bonded with previously used instance.

Parameters
toReleaseContent used previously.

Reimplemented in Doloro.InvetorySystem.UI.Extension.ItemFeaturesListGUIExtension.

Property Documentation

◆ inspector

AContentInspectorGUIElement<ContentType> Doloro.UIEngine2.Controls.AContentInspectorExtension< ContentType >.inspector
getinherited

Inspector to extend.

Must be placed on the same object as the component.


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