Loading...
Searching...
No Matches
AdventureCore.ItemsControlBase< T > Class Template Reference

Detailed Description

base class for selectable lists of items in ugui
creates and manages ui elements based on the contents of a list
similar in concept to uitoolkit listview or wpf itemscontrol

Template Parameters
T
Inheritance diagram for AdventureCore.ItemsControlBase< T >:

Public Member Functions

virtual void Initialize (ObservableCollection< T > source)
 
virtual void DeselectEntry ()
 
virtual void SelectEntry (ItemsControlEntryBase< T > entry)
 
virtual void EntrySubmitted (ItemsControlEntryBase< T > entry)
 

Public Attributes

Transform Parent
 
ItemsControlEntryBase< T > Prefab
 
ScrollRect ScrollRect
 
UnityEvent< T > Submitted
 
UnityEvent< T > SelectionChanged
 

Protected Member Functions

virtual void Awake ()
 
virtual void collectionChanged (object sender, NotifyCollectionChangedEventArgs e)
 
virtual void add (T item)
 
virtual void remove (T item)
 
virtual void sort ()
 
virtual bool filter (T item)
 
virtual IComparer< T > getSorter ()
 
virtual void onItemSelected (T item)
 
virtual void onItemSubmitted (T item)
 

Properties

Selected [get]