Game.UI.Editor.HierarchyMenu`1
Assembly: Game
Namespace: Game.UI.Editor
Type: class public
Base: Game.UI.Editor.HierarchyMenu
Implements: Game.UI.Widgets.IWidget
, Colossal.UI.Binding.IJsonWritable
, Game.UI.Widgets.IVisibleWidget
, Game.UI.Widgets.IDisableCallback
Code
public class HierarchyMenu<T> : Game.UI.Editor.HierarchyMenu, Game.UI.Widgets.IWidget, Colossal.UI.Binding.IJsonWritable, Game.UI.Widgets.IVisibleWidget, Game.UI.Widgets.IDisableCallback
{
private Game.UI.Editor.HierarchyMenu+SelectionType m_SelectionType;
private System.Collections.Generic.List<Game.UI.Editor.HierarchyItem<T>> m_Items;
private System.Collections.Generic.List<Game.UI.Editor.ViewportItem<T>> m_Viewport;
private System.Int32 m_ViewportStartIndex;
private System.Int32 m_ViewportEndIndex;
private System.Boolean m_ViewportDirty;
private Game.UI.Widgets.FlexLayout <flex>k__BackingField;
private System.Action <onSelectionChange>k__BackingField;
public System.String propertiesTypeName { get; }
public Game.UI.Widgets.FlexLayout flex { get; set; }
public System.Action onSelectionChange { get; set; }
public Game.UI.Editor.HierarchyMenu+SelectionType selectionType { get; set; }
public System.Collections.Generic.IEnumerable<Game.UI.Editor.HierarchyItem<T>> items { get; set; }
public HierarchyMenu`1();
private System.Void ClearSelection();
private System.Int32 CountChildren(System.Int32 itemIndex);
private System.Int32 CountVisibleItems();
private System.Boolean FindItemIndex(System.Int32 visibleIndex, System.Int32& itemIndex);
private System.Boolean FindParent(System.Int32 itemIndex, System.Int32& parentIndex);
public System.Boolean GetSelectedItem(T& selection);
public System.Collections.Generic.IEnumerable<T> GetSelectedItems();
public System.Boolean IsEmpty();
protected virtual System.Void OnSetItemExpanded(System.Int32 viewportIndex, System.Boolean expanded);
protected virtual System.Void OnSetItemSelected(System.Int32 viewportIndex, System.Boolean selected);
protected virtual System.Void OnSetRenderedRange(System.Int32 start, System.Int32 end);
private System.Void PatchParentsSelected(System.Int32 itemIndex);
private System.Void RebuildViewport();
private System.Void SetChildrenSelected(System.Int32 itemIndex, System.Boolean selected);
public System.Void SetItemExpanded(System.Int32 itemIndex, System.Boolean expanded);
public System.Void SetItemSelected(System.Int32 itemIndex, System.Boolean selected);
private System.Void SetItemSelectedImpl(System.Int32 itemIndex, System.Boolean selected);
protected virtual Game.UI.Widgets.WidgetChanges Update();
protected virtual System.Void WriteProperties(Colossal.UI.Binding.IJsonWriter writer);
}
Fields
private Game.UI.Editor.HierarchyMenu+SelectionType m_SelectionType
private Game.UI.Editor.HierarchyMenu+SelectionType m_SelectionType;
private System.Collections.Generic.List<Game.UI.Editor.HierarchyItem<T>> m_Items
private System.Collections.Generic.List<Game.UI.Editor.HierarchyItem<T>> m_Items;
private System.Collections.Generic.List<Game.UI.Editor.ViewportItem<T>> m_Viewport
private System.Collections.Generic.List<Game.UI.Editor.ViewportItem<T>> m_Viewport;
private System.Int32 m_ViewportStartIndex
private System.Int32 m_ViewportStartIndex;
private System.Int32 m_ViewportEndIndex
private System.Int32 m_ViewportEndIndex;
private System.Boolean m_ViewportDirty
private System.Boolean m_ViewportDirty;
private Game.UI.Widgets.FlexLayout <flex>k__BackingField
private Game.UI.Widgets.FlexLayout <flex>k__BackingField;
private System.Action <onSelectionChange>k__BackingField
private System.Action <onSelectionChange>k__BackingField;
Properties
public System.String propertiesTypeName { get }
public System.String propertiesTypeName { get; }
public Game.UI.Widgets.FlexLayout flex { get; set }
public Game.UI.Widgets.FlexLayout flex { get; set; }
public System.Action onSelectionChange { get; set }
public System.Action onSelectionChange { get; set; }
public Game.UI.Editor.HierarchyMenu+SelectionType selectionType { get; set }
public Game.UI.Editor.HierarchyMenu+SelectionType selectionType { get; set; }
public System.Collections.Generic.IEnumerable<Game.UI.Editor.HierarchyItem<T>> items { get; set }
public System.Collections.Generic.IEnumerable<Game.UI.Editor.HierarchyItem<T>> items { get; set; }
Constructors
public HierarchyMenu
1()`
public HierarchyMenu`1();
Methods
private ClearSelection() : System.Void
private System.Void ClearSelection();
private CountChildren(System.Int32 itemIndex) : System.Int32
private System.Int32 CountChildren(System.Int32 itemIndex);
private CountVisibleItems() : System.Int32
private System.Int32 CountVisibleItems();
private FindItemIndex(System.Int32 visibleIndex, System.Int32& itemIndex) : System.Boolean
private System.Boolean FindItemIndex(System.Int32 visibleIndex, System.Int32& itemIndex);
private FindParent(System.Int32 itemIndex, System.Int32& parentIndex) : System.Boolean
private System.Boolean FindParent(System.Int32 itemIndex, System.Int32& parentIndex);
public GetSelectedItem(T& selection) : System.Boolean
public System.Boolean GetSelectedItem(T& selection);
public GetSelectedItems() : System.Collections.Generic.IEnumerable<T>
public System.Collections.Generic.IEnumerable<T> GetSelectedItems();
public IsEmpty() : System.Boolean
public System.Boolean IsEmpty();
protected virtual OnSetItemExpanded(System.Int32 viewportIndex, System.Boolean expanded) : System.Void
protected virtual System.Void OnSetItemExpanded(System.Int32 viewportIndex, System.Boolean expanded);
protected virtual OnSetItemSelected(System.Int32 viewportIndex, System.Boolean selected) : System.Void
protected virtual System.Void OnSetItemSelected(System.Int32 viewportIndex, System.Boolean selected);
protected virtual OnSetRenderedRange(System.Int32 start, System.Int32 end) : System.Void
protected virtual System.Void OnSetRenderedRange(System.Int32 start, System.Int32 end);
private PatchParentsSelected(System.Int32 itemIndex) : System.Void
private System.Void PatchParentsSelected(System.Int32 itemIndex);
private RebuildViewport() : System.Void
private System.Void RebuildViewport();
private SetChildrenSelected(System.Int32 itemIndex, System.Boolean selected) : System.Void
private System.Void SetChildrenSelected(System.Int32 itemIndex, System.Boolean selected);
public SetItemExpanded(System.Int32 itemIndex, System.Boolean expanded) : System.Void
public System.Void SetItemExpanded(System.Int32 itemIndex, System.Boolean expanded);
public SetItemSelected(System.Int32 itemIndex, System.Boolean selected) : System.Void
public System.Void SetItemSelected(System.Int32 itemIndex, System.Boolean selected);
private SetItemSelectedImpl(System.Int32 itemIndex, System.Boolean selected) : System.Void
private System.Void SetItemSelectedImpl(System.Int32 itemIndex, System.Boolean selected);
protected virtual Update() : Game.UI.Widgets.WidgetChanges
protected virtual Game.UI.Widgets.WidgetChanges Update();
protected virtual WriteProperties(Colossal.UI.Binding.IJsonWriter writer) : System.Void
protected virtual System.Void WriteProperties(Colossal.UI.Binding.IJsonWriter writer);
Nested types
Game.UI.Editor.HierarchyMenu<T>
Game.UI.Editor.HierarchyMenu<T>