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

Detailed Description

Creates a bridge between database item entry's weight parameter of items stack and UI.

Looking for weight with the AssetPropertiesCollection component by the DOMAIN_WORTH_PROP key. If absent then considers weight as 0.

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

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...
 

Public Attributes

UnityEngine.UI.Text weightLabel
 Label that will display weight value.
 
string postfixLabel0_1 = " g"
 Label that will be joined to the weigh value.
 
string postfixLabel1_1k = " Kg"
 
string postfixLabel1k_1kk = " T"
 
string postfixLabel1kkPlus = " kT"
 

Protected Member Functions

override void OnItemNotSelected ()
 Drops UI label content. More...
 
override void OnItemModified (StoragesDatabase.ItemContainer source)
 Occurs when source container has been modified and loads data to GUI. More...
 
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...
 

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

◆ ApplyGUIContentInternal()

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

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

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

◆ OnItemModified()

override void Doloro.InvetorySystem.UI.Extension.ItemStackWeightGUIExtension.OnItemModified ( StoragesDatabase.ItemContainer  source)
protectedvirtual

Occurs when source container has been modified and loads data to GUI.

Parameters
sourcesource container.

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

◆ OnItemNotSelected()

override void Doloro.InvetorySystem.UI.Extension.ItemStackWeightGUIExtension.OnItemNotSelected ( )
protectedvirtual

Drops UI label content.

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

◆ 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: