Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Class UserToolPanelItemDataSource

    Inheritance
    object
    UIDataSource
    UserToolPanelItemDataSource
    Implements
    IDataSourceViewHashProvider
    ICommitChanges
    Inherited Members
    UIDataSource.Version
    UIDataSource.MarkDirty()
    UIDataSource.GetViewHashCode()
    UIDataSource.CommitChanges()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Fwt.HexTerrains.TerrainEditors.UserTools
    Assembly: fwt.hexterrains.dll
    Syntax
    public class UserToolPanelItemDataSource : UIDataSource, IDataSourceViewHashProvider, ICommitChanges

    Constructors

    UserToolPanelItemDataSource()

    Declaration
    public UserToolPanelItemDataSource()

    Fields

    AreSubtoolsVisible

    Declaration
    public bool AreSubtoolsVisible
    Field Value
    Type Description
    bool

    OnClick

    Declaration
    public Action OnClick
    Field Value
    Type Description
    Action

    SelectedSubtoolIndex

    Declaration
    public int SelectedSubtoolIndex
    Field Value
    Type Description
    int

    Settings

    Declaration
    public UserToolSettings Settings
    Field Value
    Type Description
    UserToolSettings

    SourceDataVersion

    Declaration
    public long SourceDataVersion
    Field Value
    Type Description
    long

    Subtools

    Declaration
    public List<UserToolPanelItemDataSource> Subtools
    Field Value
    Type Description
    List<UserToolPanelItemDataSource>

    UserToolType

    Declaration
    public int UserToolType
    Field Value
    Type Description
    int

    _isSelected

    Declaration
    protected bool _isSelected
    Field Value
    Type Description
    bool

    Properties

    IconImage

    Declaration
    [CreateProperty]
    public Background IconImage { get; }
    Property Value
    Type Description
    Background

    IsSelected

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type Description
    bool

    IsSelectedDisplayStyle

    Declaration
    [CreateProperty]
    public DisplayStyle IsSelectedDisplayStyle { get; }
    Property Value
    Type Description
    DisplayStyle

    SelectedSubtool

    returns the clickedSubtool of index SelectedSubtoolIndex (if any)

    Declaration
    [CreateProperty]
    public UserToolPanelItemDataSource SelectedSubtool { get; }
    Property Value
    Type Description
    UserToolPanelItemDataSource

    SelectedSubtoolSubtools

    returns the subtools of the selected clickedSubtool (if any)

    Declaration
    [CreateProperty]
    public List<UserToolPanelItemDataSource> SelectedSubtoolSubtools { get; }
    Property Value
    Type Description
    List<UserToolPanelItemDataSource>

    Methods

    Init(UserToolsPanelDataSource, Action<UserToolPanelItemDataSource>)

    Declaration
    public void Init(UserToolsPanelDataSource userToolsRoot, Action<UserToolPanelItemDataSource> onClickCallback)
    Parameters
    Type Name Description
    UserToolsPanelDataSource userToolsRoot
    Action<UserToolPanelItemDataSource> onClickCallback

    OnIsSelectedChanged()

    Declaration
    protected virtual void OnIsSelectedChanged()

    OnSubtoolClick(UserToolPanelItemDataSource)

    Declaration
    public void OnSubtoolClick(UserToolPanelItemDataSource clickedSubtool)
    Parameters
    Type Name Description
    UserToolPanelItemDataSource clickedSubtool

    Implements

    UnityEngine.UIElements.IDataSourceViewHashProvider
    ICommitChanges

    Extension Methods

    HashExtensions.GetHashCode_RefType<TValue>(TValue, int)
    HashExtensions.GetHashCode_RefType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX