Class ContextListView
- Namespace
- KSP.UI.Binding
- Assembly
- Assembly-CSharp.dll
public class ContextListView
- Inheritance
-
ContextListView
- Inherited Members
-
- Extension Methods
-
Constructors
ContextListView(IContextListProperty, Func<Transform, UIList_ListElement>, Action<UIList_ListElement>, Transform, IDataContextReadonly, InjectKeys, bool)
public ContextListView(IContextListProperty itemSource, Func<Transform, UIList_ListElement> makeElement, Action<UIList_ListElement> deleteElement, Transform elementContainer, IDataContextReadonly itemHierarchyParentOverride = null, ContextListView.InjectKeys elementInjectKeys = null, bool destroyElementContainerChildren = true)
Parameters
itemSource IContextListProperty
makeElement Func<Transform, UIList_ListElement>
deleteElement Action<UIList_ListElement>
elementContainer Transform
itemHierarchyParentOverride IDataContextReadonly
elementInjectKeys ContextListView.InjectKeys
destroyElementContainerChildren bool
Properties
CanUpdateListView
public bool CanUpdateListView { get; }
Property Value
- bool
ElementContainer
public Transform ElementContainer { get; set; }
Property Value
- Transform
ElementInjectKeys
public ContextListView.InjectKeys ElementInjectKeys { get; set; }
Property Value
- ContextListView.InjectKeys
IsBeingDestroyed
protected bool IsBeingDestroyed { get; }
Property Value
- bool
IsReverseBindOrder
public bool IsReverseBindOrder { get; set; }
Property Value
- bool
ItemSource
public IReadOnlyList<IDataContextReadonly> ItemSource { get; }
Property Value
- IReadOnlyList<IDataContextReadonly>
ItemSourceCountMinusProperty
public PropertyReadonly<int> ItemSourceCountMinusProperty { get; }
Property Value
- PropertyReadonly<int>
ItemSourceCountProperty
public PropertyReadonly<int> ItemSourceCountProperty { get; }
Property Value
- PropertyReadonly<int>
ItemSourceProperty
public IContextListProperty ItemSourceProperty { get; set; }
Property Value
- IContextListProperty
ViewElementCount
public int ViewElementCount { get; }
Property Value
- int
Methods
BindItemSourceProperty(IContextListProperty)
protected void BindItemSourceProperty(IContextListProperty itemSourceProperty)
Parameters
itemSourceProperty IContextListProperty
ClearViewElements()
protected virtual void ClearViewElements()
GetElementOnScreen(Vector2, Func<RectTransform, bool>)
public UIList_ListElement GetElementOnScreen(Vector2 mouseScreenPosition, Func<RectTransform, bool> funcValidator = null)
Parameters
mouseScreenPosition Vector2
funcValidator Func<RectTransform, bool>
Returns
- UIList_ListElement
UpdateViewElementLifetime()
public void UpdateViewElementLifetime()