Class GameMenuVM
- Assembly
- TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class GameMenuVM : ViewModel, IViewModel, INotifyPropertyChanged
- Inheritance
-
GameMenuVM
- Implements
- Inherited Members
Constructors
GameMenuVM(MenuContext)
public GameMenuVM(MenuContext menuContext)
Parameters
menuContext
MenuContext
Properties
Background
[DataSourceProperty]
public string Background { get; set; }
Property Value
ContextText
[DataSourceProperty]
public string ContextText { get; set; }
Property Value
IsEncounterMenu
[DataSourceProperty]
public bool IsEncounterMenu { get; set; }
Property Value
IsInSiegeMode
[DataSourceProperty]
public bool IsInSiegeMode { get; set; }
Property Value
IsInspected
public bool IsInspected { set; }
Property Value
IsNight
[DataSourceProperty]
public bool IsNight { get; set; }
Property Value
ItemList
[DataSourceProperty]
public MBBindingList<GameMenuItemVM> ItemList { get; set; }
Property Value
MenuContext
public MenuContext MenuContext { get; }
Property Value
PlunderItems
[DataSourceProperty]
public MBBindingList<GameMenuPlunderItemVM> PlunderItems { get; set; }
Property Value
ProgressItemList
[DataSourceProperty]
public MBBindingList<GameMenuItemProgressVM> ProgressItemList { get; set; }
Property Value
TitleText
[DataSourceProperty]
public string TitleText { get; set; }
Property Value
Methods
AddHotKey(LeaveType, GameKey)
public void AddHotKey(GameMenuOption.LeaveType leaveType, GameKey gameKey)
Parameters
leaveType
GameMenuOption.LeaveTypegameKey
GameKey
CreateGameMenuItemVM(int)
protected virtual GameMenuItemVM CreateGameMenuItemVM(int indexOfMenuCondition)
Parameters
indexOfMenuCondition
int
Returns
ExecuteLink(string)
public void ExecuteLink(string link)
Parameters
link
string
OnFinalize()
public override void OnFinalize()
OnFrameTick()
public void OnFrameTick()
Refresh(bool)
public void Refresh(bool forceUpdateItems)
Parameters
forceUpdateItems
bool
RefreshValues()
public override void RefreshValues()
UpdateMenuContext(MenuContext)
public void UpdateMenuContext(MenuContext newMenuContext)
Parameters
newMenuContext
MenuContext
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).