Class OrderOfBattleFormationItemVM
- Assembly
- TaleWorlds.MountAndBlade.ViewModelCollection.dll
public class OrderOfBattleFormationItemVM : ViewModel, IViewModel, INotifyPropertyChanged
- Inheritance
-
OrderOfBattleFormationItemVM
- Implements
- Inherited Members
Constructors
OrderOfBattleFormationItemVM(Camera)
public OrderOfBattleFormationItemVM(Camera missionCamera)
Parameters
missionCamera
Camera
Fields
GetFormationWithCondition
public static Func<Func<OrderOfBattleFormationItemVM, bool>, IEnumerable<OrderOfBattleFormationItemVM>> GetFormationWithCondition
Field Value
GetTotalTroopCountWithFilter
public static Func<DeploymentFormationClass, FormationFilterType, int> GetTotalTroopCountWithFilter
Field Value
HasAnyTroopWithClass
public static Func<FormationClass, bool> HasAnyTroopWithClass
Field Value
OnAcceptCommander
public static Action<OrderOfBattleFormationItemVM> OnAcceptCommander
Field Value
OnAcceptHeroTroops
public static Action<OrderOfBattleFormationItemVM> OnAcceptHeroTroops
Field Value
OnClassSelectionToggled
public static Action<OrderOfBattleFormationItemVM> OnClassSelectionToggled
Field Value
OnDeselection
public static Action<OrderOfBattleFormationItemVM> OnDeselection
Field Value
OnFilterSelectionToggled
public static Action<OrderOfBattleFormationItemVM> OnFilterSelectionToggled
Field Value
OnFilterUseToggled
public static Action<OrderOfBattleFormationItemVM> OnFilterUseToggled
Field Value
OnHeroesChanged
public static Action OnHeroesChanged
Field Value
OnSelection
public static Action<OrderOfBattleFormationItemVM> OnSelection
Field Value
Properties
ActiveFilterItems
[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationFilterSelectorItemVM> ActiveFilterItems { get; set; }
Property Value
AssignCommanderHint
[DataSourceProperty]
public HintViewModel AssignCommanderHint { get; set; }
Property Value
AssignHeroTroopHint
[DataSourceProperty]
public HintViewModel AssignHeroTroopHint { get; set; }
Property Value
CantAdjustHint
[DataSourceProperty]
public HintViewModel CantAdjustHint { get; set; }
Property Value
Classes
[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationClassVM> Classes { get; set; }
Property Value
Commander
[DataSourceProperty]
public OrderOfBattleHeroItemVM Commander { get; set; }
Property Value
CommanderSlotHint
[DataSourceProperty]
public HintViewModel CommanderSlotHint { get; set; }
Property Value
FilterItems
[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationFilterSelectorItemVM> FilterItems { get; set; }
Property Value
Formation
public Formation Formation { get; }
Property Value
FormationClassSelector
[DataSourceProperty]
public SelectorVM<OrderOfBattleFormationClassSelectorItemVM> FormationClassSelector { get; set; }
Property Value
FormationIsEmptyText
[DataSourceProperty]
public string FormationIsEmptyText { get; set; }
Property Value
HasCommander
[DataSourceProperty]
public bool HasCommander { get; set; }
Property Value
HasFormation
[DataSourceProperty]
public bool HasFormation { get; set; }
Property Value
HasHeroTroops
[DataSourceProperty]
public bool HasHeroTroops { get; set; }
Property Value
HeroTroopSlotHint
[DataSourceProperty]
public HintViewModel HeroTroopSlotHint { get; set; }
Property Value
HeroTroops
[DataSourceProperty]
public MBBindingList<OrderOfBattleHeroItemVM> HeroTroops { get; set; }
Property Value
IsAcceptingCommander
[DataSourceProperty]
public bool IsAcceptingCommander { get; set; }
Property Value
IsAcceptingHeroTroops
[DataSourceProperty]
public bool IsAcceptingHeroTroops { get; set; }
Property Value
IsAdjustable
[DataSourceProperty]
public bool IsAdjustable { get; set; }
Property Value
IsBeingFocused
[DataSourceProperty]
public bool IsBeingFocused { get; set; }
Property Value
IsCaptainSlotHighlightActive
[DataSourceProperty]
public bool IsCaptainSlotHighlightActive { get; set; }
Property Value
IsClassSelectionActive
[DataSourceProperty]
public bool IsClassSelectionActive { get; set; }
Property Value
IsControlledByPlayer
[DataSourceProperty]
public bool IsControlledByPlayer { get; set; }
Property Value
IsFilterSelectionActive
[DataSourceProperty]
public bool IsFilterSelectionActive { get; set; }
Property Value
IsFiltered
[DataSourceProperty]
public bool IsFiltered { get; set; }
Property Value
IsHeroTroopsOverflowing
[DataSourceProperty]
public bool IsHeroTroopsOverflowing { get; set; }
Property Value
IsMarkerShown
[DataSourceProperty]
public bool IsMarkerShown { get; set; }
Property Value
IsSelectable
[DataSourceProperty]
public bool IsSelectable { get; set; }
Property Value
IsSelected
[DataSourceProperty]
public bool IsSelected { get; set; }
Property Value
IsTypeSelectionHighlightActive
[DataSourceProperty]
public bool IsTypeSelectionHighlightActive { get; set; }
Property Value
OrderOfBattleFormationClassInt
[DataSourceProperty]
public int OrderOfBattleFormationClassInt { get; set; }
Property Value
OverflowHeroTroopCountText
[DataSourceProperty]
public string OverflowHeroTroopCountText { get; set; }
Property Value
ScreenPosition
[DataSourceProperty]
public Vec2 ScreenPosition { get; set; }
Property Value
TitleText
[DataSourceProperty]
public string TitleText { get; set; }
Property Value
Tooltip
[DataSourceProperty]
public BasicTooltipViewModel Tooltip { get; set; }
Property Value
TroopCount
[DataSourceProperty]
public int TroopCount { get; set; }
Property Value
WSign
[DataSourceProperty]
public int WSign { get; set; }
Property Value
Methods
AddHeroTroop(OrderOfBattleHeroItemVM)
public void AddHeroTroop(OrderOfBattleHeroItemVM heroItem)
Parameters
heroItem
OrderOfBattleHeroItemVM
ExecuteAcceptCommander()
public void ExecuteAcceptCommander()
ExecuteAcceptHeroTroops()
public void ExecuteAcceptHeroTroops()
GetOrderOfBattleClass()
public DeploymentFormationClass GetOrderOfBattleClass()
Returns
HasClass(FormationClass)
public bool HasClass(FormationClass formationClass)
Parameters
formationClass
FormationClass
Returns
HasClasses(FormationClass[])
public bool HasClasses(FormationClass[] formationClasses)
Parameters
formationClasses
FormationClass[]
Returns
HasFilter(FormationFilterType)
public bool HasFilter(FormationFilterType filter)
Parameters
filter
FormationFilterType
Returns
HasOnlyOneClass()
public bool HasOnlyOneClass()
Returns
OnHeroSelectionUpdated(int, bool)
public void OnHeroSelectionUpdated(int selectedHeroCount, bool hasOwnHeroTroopInSelection)
Parameters
OnSizeChanged()
public void OnSizeChanged()
OnlyHasClass(FormationClass)
public bool OnlyHasClass(FormationClass formationClass)
Parameters
formationClass
FormationClass
Returns
RefreshFormation(Formation, DeploymentFormationClass, bool)
public void RefreshFormation(Formation formation, DeploymentFormationClass overriddenClass = DeploymentFormationClass.Unset, bool mustExist = false)
Parameters
formation
FormationoverriddenClass
DeploymentFormationClassmustExist
bool
RefreshMarkerWorldPosition()
public void RefreshMarkerWorldPosition()
RefreshValues()
public override void RefreshValues()
RemoveHeroTroop(OrderOfBattleHeroItemVM)
public void RemoveHeroTroop(OrderOfBattleHeroItemVM heroItem)
Parameters
heroItem
OrderOfBattleHeroItemVM
Tick()
public void Tick()
UnassignCommander()
public void UnassignCommander()
UpdateAdjustable()
public void UpdateAdjustable()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).