M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM Class Reference

Inherits TaleWorlds.Library.ViewModel.

Public Member Functions

 DecisionOptionVM (DecisionOutcome option, Election.KingdomDecision decision, KingdomElection kingdomDecisionMaker, Action< DecisionOptionVM > onSelect, Action< DecisionOptionVM > onSupportStrengthChange)
 
override void RefreshValues ()
 Used for updating localized texts.
 
void AfterKingChooseOutcome ()
 
- Public Member Functions inherited from TaleWorlds.Library.ViewModel
void OnPropertyChanged ([CallerMemberName] string propertyName=null)
 Method for notifying binded views about the changes in a property. Uses reflection to get the value of the property. If reflection is not needed or updated value of the property is already known, use OnPropertyChangedWithValue() instead.
 
void OnPropertyChangedWithValue< T > (T value, [CallerMemberName]string propertyName=null)
 Faster method for notifying binded views about the changes in a property. To avoid reflection, caller can pass changed value to this method. If caller does not have access rights to the value, use OnPropertyChanged() instead.
 
void OnPropertyChangedWithValue (bool value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (int value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (float value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (uint value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Color value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (double value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Vec2 value, [CallerMemberName] string propertyName=null)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetViewModelAtPath (BindingPath path)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
object GetPropertyValue (string name)
 
Type GetPropertyType (string name)
 
void SetPropertyValue (string name, object value)
 
virtual void OnFinalize ()
 
void ExecuteCommand (string commandName, object[] parameters)
 
virtual void RefreshValues ()
 Used for updating localized texts.
 
object GetViewModelAtPath (BindingPath path)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetPropertyValue (string name)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
void SetPropertyValue (string name, object value)
 
void ExecuteCommand (string commandName, object[] parameters)
 

Properties

DecisionOutcome Option [get]
 
Election.KingdomDecision Decision [get]
 
HintViewModel OptionHint [get, set]
 
MBBindingList< DecisionSupporterVMSupportersOfThisOption [get, set]
 
HeroVM Sponsor [get, set]
 
string Name [get, set]
 
string SponsorWeightImagePath [get, set]
 
bool CanBeChosen [get, set]
 
bool IsKingsOutcome [get, set]
 
bool IsPlayerSupporter [get, set]
 
bool IsHighlightEnabled [get, set]
 
int WinPercentage [get, set]
 
string WinPercentageStr [get, set]
 
string Description [get, set]
 
int InitialPercentage [get, set]
 
int InfluenceCost [get, set]
 
bool IsSelected [get, set]
 
bool IsOptionForAbstain [get, set]
 
Supporter.SupportWeights CurrentSupportWeight [get, set]
 
int CurrentSupportWeightIndex [get, set]
 
string SupportOption1Text [get, set]
 
string SupportOption2Text [get, set]
 
string SupportOption3Text [get, set]
 
bool IsSupportOption1Enabled [get, set]
 
bool IsSupportOption2Enabled [get, set]
 
bool IsSupportOption3Enabled [get, set]
 
- Properties inherited from TaleWorlds.Library.ViewModel
PropertyChangedEventHandler PropertyChanged
 
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Additional Inherited Members

- Static Public Member Functions inherited from TaleWorlds.Library.ViewModel
static void CollectPropertiesAndMethods ()
 
- Static Public Attributes inherited from TaleWorlds.Library.ViewModel
static bool UIDebugMode
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 
- Events inherited from TaleWorlds.Library.IViewModel
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Constructor & Destructor Documentation

◆ DecisionOptionVM()

TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.DecisionOptionVM ( DecisionOutcome  option,
Election::KingdomDecision  decision,
KingdomElection  kingdomDecisionMaker,
Action< DecisionOptionVM onSelect,
Action< DecisionOptionVM onSupportStrengthChange 
)

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ AfterKingChooseOutcome()

void TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.AfterKingChooseOutcome ( )

Property Documentation

◆ Option

DecisionOutcome TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.Option
get

◆ Decision

Election.KingdomDecision TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.Decision
get

◆ OptionHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.OptionHint
getset

◆ SupportersOfThisOption

MBBindingList<DecisionSupporterVM> TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.SupportersOfThisOption
getset

◆ Sponsor

HeroVM TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.Sponsor
getset

◆ Name

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.Name
getset

◆ SponsorWeightImagePath

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.SponsorWeightImagePath
getset

◆ CanBeChosen

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.CanBeChosen
getset

◆ IsKingsOutcome

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsKingsOutcome
getset

◆ IsPlayerSupporter

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsPlayerSupporter
getset

◆ IsHighlightEnabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsHighlightEnabled
getset

◆ WinPercentage

int TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.WinPercentage
getset

◆ WinPercentageStr

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.WinPercentageStr
getset

◆ Description

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.Description
getset

◆ InitialPercentage

int TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.InitialPercentage
getset

◆ InfluenceCost

int TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.InfluenceCost
getset

◆ IsSelected

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsSelected
getset

◆ IsOptionForAbstain

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsOptionForAbstain
getset

◆ CurrentSupportWeight

Supporter.SupportWeights TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.CurrentSupportWeight
getset

◆ CurrentSupportWeightIndex

int TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.CurrentSupportWeightIndex
getset

◆ SupportOption1Text

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.SupportOption1Text
getset

◆ SupportOption2Text

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.SupportOption2Text
getset

◆ SupportOption3Text

string TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.SupportOption3Text
getset

◆ IsSupportOption1Enabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsSupportOption1Enabled
getset

◆ IsSupportOption2Enabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsSupportOption2Enabled
getset

◆ IsSupportOption3Enabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Decisions.DecisionOptionVM.IsSupportOption3Enabled
getset