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

Inherits TaleWorlds.Library.ViewModel.

Public Member Functions

delegate void OnItemRefreshedDelegate (bool isItemVisible)
 
 CraftingVM (Crafting crafting, Action onClose, Action resetCamera, Action onWeaponCrafted, Func< WeaponComponentData, ItemObject.ItemUsageSetFlags > getItemUsageSetFlags)
 
override void RefreshValues ()
 Used for updating localized texts.
 
override void OnFinalize ()
 
void DebugTick (float dt)
 
void OnCraftingLogicRefreshed (Crafting newCraftingLogic)
 
void UpdateCraftingHero (CraftingAvailableHeroItemVM newHero)
 
bool bool isMainActionExecuted ExecuteConfirm ()
 
void ExecuteCancel ()
 
void ExecuteMainAction ()
 
void ExecuteResetCamera ()
 
void SetConfirmInputKey (HotKey hotKey)
 
void SetExitInputKey (HotKey hotKey)
 
void SetPreviousTabInputKey (HotKey hotKey)
 
void SetNextTabInputKey (HotKey hotKey)
 
void AddCameraControlInputKey (HotKey hotKey)
 
void AddCameraControlInputKey (GameKey gameKey)
 
void AddCameraControlInputKey (GameAxisKey gameAxisKey)
 
void ExecuteSwitchToCrafting ()
 
void ExecuteSwitchToSmelting ()
 
void ExecuteSwitchToRefinement ()
 
void SetCurrentDesignManually (CraftingTemplate craftingTemplate,(CraftingPiece, int)[] pieces)
 
- 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)
 

Public Attributes

OnItemRefreshedDelegate OnItemRefreshed
 
bool isConfirmSuccessful
 
ElementNotificationVM _tutorialNotification
 

Properties

InputKeyItemVM ConfirmInputKey [get, set]
 
InputKeyItemVM ExitInputKey [get, set]
 
InputKeyItemVM PreviousTabInputKey [get, set]
 
InputKeyItemVM NextTabInputKey [get, set]
 
MBBindingList< InputKeyItemVMCameraControlKeys [get, set]
 
bool CanSwitchTabs [get, set]
 
bool AreGamepadControlHintsEnabled [get, set]
 
MBBindingList< CraftingResourceItemVMPlayerCurrentMaterials [get, set]
 
MBBindingList< CraftingAvailableHeroItemVMAvailableCharactersForSmithing [get, set]
 
CraftingAvailableHeroItemVM CurrentCraftingHero [get, set]
 
CraftingHeroPopupVM CraftingHeroPopup [get, set]
 
string CurrentCategoryText [get, set]
 
string CraftingText [get, set]
 
string SmeltingText [get, set]
 
string RefinementText [get, set]
 
string MainActionText [get, set]
 
bool IsMainActionEnabled [get, set]
 
int ItemValue [get, set]
 
HintViewModel CraftingHint [get, set]
 
HintViewModel RefiningHint [get, set]
 
HintViewModel SmeltingHint [get, set]
 
HintViewModel ResetCameraHint [get, set]
 
BasicTooltipViewModel MainActionHint [get, set]
 
string DoneLbl [get, set]
 
string CancelLbl [get, set]
 
SmeltingVM Smelting [get, set]
 
WeaponDesignVM WeaponDesign [get, set]
 
RefinementVM Refinement [get, set]
 
bool IsInCraftingMode [get, set]
 
bool IsInSmeltingMode [get, set]
 
bool IsInRefinementMode [get, set]
 
bool IsSmeltingItemSelected [get, set]
 
bool IsRefinementItemSelected [get, set]
 
string SelectItemToSmeltText [get, set]
 
string SelectItemToRefineText [get, set]
 
ElementNotificationVM TutorialNotification [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

◆ CraftingVM()

TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CraftingVM ( Crafting  crafting,
Action  onClose,
Action  resetCamera,
Action  onWeaponCrafted,
Func< WeaponComponentData, ItemObject::ItemUsageSetFlags getItemUsageSetFlags 
)

Member Function Documentation

◆ OnItemRefreshedDelegate()

delegate void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.OnItemRefreshedDelegate ( bool  isItemVisible)

◆ RefreshValues()

override void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ OnFinalize()

override void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ DebugTick()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.DebugTick ( float  dt)

◆ OnCraftingLogicRefreshed()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.OnCraftingLogicRefreshed ( Crafting  newCraftingLogic)

◆ UpdateCraftingHero()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.UpdateCraftingHero ( CraftingAvailableHeroItemVM  newHero)

◆ ExecuteConfirm()

bool bool isMainActionExecuted TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExecuteConfirm ( )

◆ ExecuteCancel()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExecuteCancel ( )

◆ ExecuteMainAction()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExecuteMainAction ( )

◆ ExecuteResetCamera()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExecuteResetCamera ( )

◆ SetConfirmInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SetConfirmInputKey ( HotKey  hotKey)

◆ SetExitInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SetExitInputKey ( HotKey  hotKey)

◆ SetPreviousTabInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SetPreviousTabInputKey ( HotKey  hotKey)

◆ SetNextTabInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SetNextTabInputKey ( HotKey  hotKey)

◆ AddCameraControlInputKey() [1/3]

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.AddCameraControlInputKey ( HotKey  hotKey)

◆ AddCameraControlInputKey() [2/3]

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.AddCameraControlInputKey ( GameKey  gameKey)

◆ AddCameraControlInputKey() [3/3]

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.AddCameraControlInputKey ( GameAxisKey  gameAxisKey)

◆ ExecuteSwitchToCrafting()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExecuteSwitchToCrafting ( )

◆ ExecuteSwitchToSmelting()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExecuteSwitchToSmelting ( )

◆ ExecuteSwitchToRefinement()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExecuteSwitchToRefinement ( )

◆ SetCurrentDesignManually()

void TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SetCurrentDesignManually ( CraftingTemplate  craftingTemplate,
(CraftingPiece, int)[]  pieces 
)

Member Data Documentation

◆ OnItemRefreshed

OnItemRefreshedDelegate TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.OnItemRefreshed

◆ isConfirmSuccessful

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.isConfirmSuccessful

◆ _tutorialNotification

ElementNotificationVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM._tutorialNotification

Property Documentation

◆ ConfirmInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ConfirmInputKey
getset

◆ ExitInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ExitInputKey
getset

◆ PreviousTabInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.PreviousTabInputKey
getset

◆ NextTabInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.NextTabInputKey
getset

◆ CameraControlKeys

MBBindingList<InputKeyItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CameraControlKeys
getset

◆ CanSwitchTabs

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CanSwitchTabs
getset

◆ AreGamepadControlHintsEnabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.AreGamepadControlHintsEnabled
getset

◆ PlayerCurrentMaterials

MBBindingList<CraftingResourceItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.PlayerCurrentMaterials
getset

◆ AvailableCharactersForSmithing

MBBindingList<CraftingAvailableHeroItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.AvailableCharactersForSmithing
getset

◆ CurrentCraftingHero

CraftingAvailableHeroItemVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CurrentCraftingHero
getset

◆ CraftingHeroPopup

CraftingHeroPopupVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CraftingHeroPopup
getset

◆ CurrentCategoryText

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CurrentCategoryText
getset

◆ CraftingText

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CraftingText
getset

◆ SmeltingText

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SmeltingText
getset

◆ RefinementText

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.RefinementText
getset

◆ MainActionText

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.MainActionText
getset

◆ IsMainActionEnabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.IsMainActionEnabled
getset

◆ ItemValue

int TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ItemValue
getset

◆ CraftingHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CraftingHint
getset

◆ RefiningHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.RefiningHint
getset

◆ SmeltingHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SmeltingHint
getset

◆ ResetCameraHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.ResetCameraHint
getset

◆ MainActionHint

BasicTooltipViewModel TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.MainActionHint
getset

◆ DoneLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.DoneLbl
getset

◆ CancelLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.CancelLbl
getset

◆ Smelting

SmeltingVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.Smelting
getset

◆ WeaponDesign

WeaponDesignVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.WeaponDesign
getset

◆ Refinement

RefinementVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.Refinement
getset

◆ IsInCraftingMode

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.IsInCraftingMode
getset

◆ IsInSmeltingMode

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.IsInSmeltingMode
getset

◆ IsInRefinementMode

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.IsInRefinementMode
getset

◆ IsSmeltingItemSelected

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.IsSmeltingItemSelected
getset

◆ IsRefinementItemSelected

bool TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.IsRefinementItemSelected
getset

◆ SelectItemToSmeltText

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SelectItemToSmeltText
getset

◆ SelectItemToRefineText

string TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.SelectItemToRefineText
getset

◆ TutorialNotification

ElementNotificationVM TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting.CraftingVM.TutorialNotification
getset