Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension Class Reference

Detailed Description

GUI extension for ItemGUIElement.

The component simplifies operation with item related GUI enveloping internal logic in more clear message handlers those may be overridden with custom logic.

Inheritance diagram for Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension:
Collaboration diagram for Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension:

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

virtual void OnDestroy ()
 Unsubscribes internal handlers from background events. 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

virtual void ApplyGUIContentInternal ()
 Internal extension that allows to influent ApplyGUIContent event if it sealed. Useful for architecture classes. More...
 

Properties

AContentInspectorGUIElement< ContentType > inspector [get]
 Inspector to extend. More...
 

Member Function Documentation

◆ ApplyGUIContent()

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

◆ ApplyGUIContentInternal()

virtual void Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.ApplyGUIContentInternal ( )
packagevirtual

Internal extension that allows to influent ApplyGUIContent event if it sealed. Useful for architecture classes.

Reimplemented in Doloro.InvetorySystem.UI.Extension.AItemFeatureGUIExtension< FeatureType >.

◆ DropGUIContent()

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

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

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

◆ OnDestroy()

virtual void Doloro.InvetorySystem.UI.Extension.AItemGUIElementExtension.OnDestroy ( )
protectedvirtual

◆ OnItemModified()

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

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 ( )
protectedvirtual

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)
protectedvirtual

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: