Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
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.
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. | |
|
virtual |
|
virtual |
Drops UI member to clear state.
Implements Doloro.UIEngine2.Controls.AContentInspectorGUIElement< AItemFeature >.
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;
property | Property that will be used as data source. |
' Creates TempSource instance and applies it as content.
|
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.