Kerbal Space Program
1.12.4
|
List for organizing items within a transform handled by a LayoutGroup. The only responsibility of this component is to add/remove/sort elements in this transform. More...
Classes | |
class | ListDropEvent< UIList, UIListItem, integer > |
Event fired from UIListDropArea More... | |
Public Member Functions | |
void | AddItem (UIListItem item, bool forceZ=true) |
void | Clear (bool destroyElements) |
void | ClearUI (Transform tmpTransform) |
bool | Contains (UIListItem item) |
int | GetDropItemIndex (UIListItem item) |
List< UIListData< UIListItem > >.Enumerator | GetEnumerator () |
int | GetIndex (UIListItem item) |
UIListItem | GetUilistItemAt (int index) |
List< UIListItem > | GetUiListItems () |
void | InsertItem (UIListItem item, int index, bool forceZ=true, bool worldPositionStays=false) |
void | Refresh () |
bool | RemoveItem (UIListItem item, bool deleteItem=false) |
bool | RemoveItem (int index, bool deleteItem=false) |
bool | RemoveItemAndMove (UIListItem item, Transform newParent, bool forceZ=true, bool worldPositionStays=false) |
void | SetActive (bool active) |
void | SetAnchor (RectTransform t) |
void | SwapItems (UIListItem item1, UIListItem item2, bool forzeZ=true, bool worldPositionStays=false) |
Public Attributes | |
bool | AddItemsOnStart |
If true the list will add all children with a UIListItem component to the UIList More... | |
ListDropEvent< UIList, UIListItem, int > | onDrop = new ListDropEvent<UIList, UIListItem, int>() |
UIListItem | placeholder |
Properties | |
UIListToggleController | Controller [get] |
int | Count [get] |
Transform | ListAnchor [get] |
List for organizing items within a transform handled by a LayoutGroup. The only responsibility of this component is to add/remove/sort elements in this transform.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the index for the item being dropped, based on the index for the existing item closest to it
WARNING: This may not match the index given by UIListItem.DropEvent.
Will return 0 if the list is empty
item |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool KSP.UI.UIList.AddItemsOnStart |
If true the list will add all children with a UIListItem component to the UIList
ListDropEvent<UIList, UIListItem, int> KSP.UI.UIList.onDrop = new ListDropEvent<UIList, UIListItem, int>() |
UIListItem KSP.UI.UIList.placeholder |
|
get |
|
get |
|
get |