M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List.EncyclopediaListSelectorVM Class Reference

Inherits TaleWorlds.Core.ViewModelCollection.Selector.SelectorVM< EncyclopediaListSelectorItemVM >.

Public Member Functions

 EncyclopediaListSelectorVM (int selectedIndex, Action< SelectorVM< EncyclopediaListSelectorItemVM > > onChange, Action onActivate)
 
void ExecuteOnDropdownActivated ()
 
- Public Member Functions inherited from TaleWorlds.Core.ViewModelCollection.Selector.SelectorVM< EncyclopediaListSelectorItemVM >
 SelectorVM (int selectedIndex, Action< SelectorVM< T > > onChange)
 
 SelectorVM (IEnumerable< string > list, int selectedIndex, Action< SelectorVM< T > > onChange)
 
 SelectorVM (IEnumerable< TextObject > list, int selectedIndex, Action< SelectorVM< T > > onChange)
 
void Refresh (IEnumerable< string > list, int selectedIndex, Action< SelectorVM< T > > onChange)
 
void Refresh (IEnumerable< TextObject > list, int selectedIndex, Action< SelectorVM< T > > onChange)
 
void Refresh (IEnumerable< T > list, int selectedIndex, Action< SelectorVM< T > > onChange)
 
void SetOnChangeAction (Action< SelectorVM< T > > onChange)
 
void AddItem (T item)
 
void ExecuteRandomize ()
 
void ExecuteSelectNextItem ()
 
void ExecuteSelectPreviousItem ()
 
GetCurrentItem ()
 
override void RefreshValues ()
 Used for updating localized texts.
 

Additional Inherited Members

- Properties inherited from TaleWorlds.Core.ViewModelCollection.Selector.SelectorVM< EncyclopediaListSelectorItemVM >
MBBindingList< T > ItemList [get, set]
 
int SelectedIndex [get, set]
 
SelectedItem [get, set]
 
bool HasSingleItem [get, set]
 

Constructor & Destructor Documentation

◆ EncyclopediaListSelectorVM()

TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List.EncyclopediaListSelectorVM.EncyclopediaListSelectorVM ( int  selectedIndex,
Action< SelectorVM< EncyclopediaListSelectorItemVM > >  onChange,
Action  onActivate 
)

Member Function Documentation

◆ ExecuteOnDropdownActivated()

void TaleWorlds.CampaignSystem.ViewModelCollection.Encyclopedia.List.EncyclopediaListSelectorVM.ExecuteOnDropdownActivated ( )