Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
KSP.UI.UIList< T > Class Template Reference

Public Member Functions

void AddItem (UIListData< T > item, bool addToUi=true, bool forceZ=true)
 
void Clear (bool destroyElements)
 
void ClearUI (Transform tmpParent)
 
bool Contains (UIListItem item)
 
List< UIListData< T > >.Enumerator GetEnumerator ()
 
int GetIndex (UIListItem item)
 
UIListItem GetUilistItemAt (int index)
 
void InsertItem (UIListData< T > 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 RemoveItem (UIListData< T > item, bool deleteItem=false)
 
bool RemoveItemAndMove (UIListItem item, Transform newParent, bool forceZ=true, bool worldPositionStays=false)
 
bool RemoveItemAndMove (UIListData< T > item, Transform newParent, bool forceZ=true, bool worldPositionStays=false)
 
void SetActive (bool active)
 
void SetAnchor (Transform t)
 
void SetAnchor (RectTransform t)
 
void Sort (RUIutils.FuncComparer< UIListData< T >> comparer)
 
 UIList (Transform listAnchor, UIListToggleController controller=null)
 

Public Attributes

RectTransform listAnchor
 

Properties

UIListToggleController Controller [get, set]
 
int Count [get]
 
List< UIListData< T > > Items [get]
 
UIListData< T > this[int index] [get, set]
 

Constructor & Destructor Documentation

KSP.UI.UIList< T >.UIList ( Transform  listAnchor,
UIListToggleController  controller = null 
)
inline

Member Function Documentation

void KSP.UI.UIList< T >.AddItem ( UIListData< T >  item,
bool  addToUi = true,
bool  forceZ = true 
)
inline
void KSP.UI.UIList< T >.Clear ( bool  destroyElements)
inline
void KSP.UI.UIList< T >.ClearUI ( Transform  tmpParent)
inline
bool KSP.UI.UIList< T >.Contains ( UIListItem  item)
inline
List<UIListData<T> >.Enumerator KSP.UI.UIList< T >.GetEnumerator ( )
inline
int KSP.UI.UIList< T >.GetIndex ( UIListItem  item)
inline
UIListItem KSP.UI.UIList< T >.GetUilistItemAt ( int  index)
inline
void KSP.UI.UIList< T >.InsertItem ( UIListData< T >  item,
int  index,
bool  forceZ = true,
bool  worldPositionStays = false 
)
inline
void KSP.UI.UIList< T >.Refresh ( )
inline
bool KSP.UI.UIList< T >.RemoveItem ( UIListItem  item,
bool  deleteItem = false 
)
inline
bool KSP.UI.UIList< T >.RemoveItem ( int  index,
bool  deleteItem = false 
)
inline
bool KSP.UI.UIList< T >.RemoveItem ( UIListData< T >  item,
bool  deleteItem = false 
)
inline
bool KSP.UI.UIList< T >.RemoveItemAndMove ( UIListItem  item,
Transform  newParent,
bool  forceZ = true,
bool  worldPositionStays = false 
)
inline
bool KSP.UI.UIList< T >.RemoveItemAndMove ( UIListData< T >  item,
Transform  newParent,
bool  forceZ = true,
bool  worldPositionStays = false 
)
inline
void KSP.UI.UIList< T >.SetActive ( bool  active)
inline
void KSP.UI.UIList< T >.SetAnchor ( Transform  t)
inline
void KSP.UI.UIList< T >.SetAnchor ( RectTransform  t)
inline
void KSP.UI.UIList< T >.Sort ( RUIutils.FuncComparer< UIListData< T >>  comparer)
inline

Member Data Documentation

RectTransform KSP.UI.UIList< T >.listAnchor

Property Documentation

int KSP.UI.UIList< T >.Count
get
List<UIListData<T> > KSP.UI.UIList< T >.Items
get
UIListData<T> KSP.UI.UIList< T >.this[int index]
getset

The documentation for this class was generated from the following file: