Table of Contents

Class CraftingVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.WeaponCrafting
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class CraftingVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
CraftingVM
Implements
Inherited Members

Constructors

CraftingVM(Crafting, Action, Action, Action, Func<WeaponComponentData, ItemUsageSetFlags>)

public CraftingVM(Crafting crafting, Action onClose, Action resetCamera, Action onWeaponCrafted, Func<WeaponComponentData, ItemObject.ItemUsageSetFlags> getItemUsageSetFlags)

Parameters

crafting Crafting
onClose Action
resetCamera Action
onWeaponCrafted Action
getItemUsageSetFlags Func<WeaponComponentData, ItemObject.ItemUsageSetFlags>

Fields

OnItemRefreshed

public CraftingVM.OnItemRefreshedDelegate OnItemRefreshed

Field Value

CraftingVM.OnItemRefreshedDelegate

_tutorialNotification

public ElementNotificationVM _tutorialNotification

Field Value

ElementNotificationVM

Properties

AreGamepadControlHintsEnabled

public bool AreGamepadControlHintsEnabled { get; set; }

Property Value

bool

AvailableCharactersForSmithing

[DataSourceProperty]
public MBBindingList<CraftingAvailableHeroItemVM> AvailableCharactersForSmithing { get; set; }

Property Value

MBBindingList<CraftingAvailableHeroItemVM>

CameraControlKeys

[DataSourceProperty]
public MBBindingList<InputKeyItemVM> CameraControlKeys { get; set; }

Property Value

MBBindingList<InputKeyItemVM>

CanSwitchTabs

public bool CanSwitchTabs { get; set; }

Property Value

bool

CancelLbl

[DataSourceProperty]
public string CancelLbl { get; set; }

Property Value

string

ConfirmInputKey

public InputKeyItemVM ConfirmInputKey { get; set; }

Property Value

InputKeyItemVM

CraftingHeroPopup

[DataSourceProperty]
public CraftingHeroPopupVM CraftingHeroPopup { get; set; }

Property Value

CraftingHeroPopupVM

CraftingHint

[DataSourceProperty]
public HintViewModel CraftingHint { get; set; }

Property Value

HintViewModel

CraftingText

[DataSourceProperty]
public string CraftingText { get; set; }

Property Value

string

CurrentCategoryText

[DataSourceProperty]
public string CurrentCategoryText { get; set; }

Property Value

string

CurrentCraftingHero

[DataSourceProperty]
public CraftingAvailableHeroItemVM CurrentCraftingHero { get; set; }

Property Value

CraftingAvailableHeroItemVM

DoneLbl

[DataSourceProperty]
public string DoneLbl { get; set; }

Property Value

string

ExitInputKey

public InputKeyItemVM ExitInputKey { get; set; }

Property Value

InputKeyItemVM

IsInCraftingMode

[DataSourceProperty]
public bool IsInCraftingMode { get; set; }

Property Value

bool

IsInRefinementMode

[DataSourceProperty]
public bool IsInRefinementMode { get; set; }

Property Value

bool

IsInSmeltingMode

[DataSourceProperty]
public bool IsInSmeltingMode { get; set; }

Property Value

bool

IsMainActionEnabled

[DataSourceProperty]
public bool IsMainActionEnabled { get; set; }

Property Value

bool

IsRefinementItemSelected

[DataSourceProperty]
public bool IsRefinementItemSelected { get; set; }

Property Value

bool

IsSmeltingItemSelected

[DataSourceProperty]
public bool IsSmeltingItemSelected { get; set; }

Property Value

bool

ItemValue

[DataSourceProperty]
public int ItemValue { get; set; }

Property Value

int

MainActionHint

[DataSourceProperty]
public BasicTooltipViewModel MainActionHint { get; set; }

Property Value

BasicTooltipViewModel

MainActionText

[DataSourceProperty]
public string MainActionText { get; set; }

Property Value

string

NextTabInputKey

public InputKeyItemVM NextTabInputKey { get; set; }

Property Value

InputKeyItemVM

PlayerCurrentMaterials

[DataSourceProperty]
public MBBindingList<CraftingResourceItemVM> PlayerCurrentMaterials { get; set; }

Property Value

MBBindingList<CraftingResourceItemVM>

PreviousTabInputKey

public InputKeyItemVM PreviousTabInputKey { get; set; }

Property Value

InputKeyItemVM

Refinement

[DataSourceProperty]
public RefinementVM Refinement { get; set; }

Property Value

RefinementVM

RefinementText

[DataSourceProperty]
public string RefinementText { get; set; }

Property Value

string

RefiningHint

[DataSourceProperty]
public HintViewModel RefiningHint { get; set; }

Property Value

HintViewModel

ResetCameraHint

[DataSourceProperty]
public HintViewModel ResetCameraHint { get; set; }

Property Value

HintViewModel

SelectItemToRefineText

[DataSourceProperty]
public string SelectItemToRefineText { get; set; }

Property Value

string

SelectItemToSmeltText

[DataSourceProperty]
public string SelectItemToSmeltText { get; set; }

Property Value

string

Smelting

[DataSourceProperty]
public SmeltingVM Smelting { get; set; }

Property Value

SmeltingVM

SmeltingHint

[DataSourceProperty]
public HintViewModel SmeltingHint { get; set; }

Property Value

HintViewModel

SmeltingText

[DataSourceProperty]
public string SmeltingText { get; set; }

Property Value

string

TutorialNotification

[DataSourceProperty]
public ElementNotificationVM TutorialNotification { get; set; }

Property Value

ElementNotificationVM

WeaponDesign

[DataSourceProperty]
public WeaponDesignVM WeaponDesign { get; set; }

Property Value

WeaponDesignVM

Methods

AddCameraControlInputKey(GameAxisKey)

public void AddCameraControlInputKey(GameAxisKey gameAxisKey)

Parameters

gameAxisKey GameAxisKey

AddCameraControlInputKey(GameKey)

public void AddCameraControlInputKey(GameKey gameKey)

Parameters

gameKey GameKey

AddCameraControlInputKey(HotKey)

public void AddCameraControlInputKey(HotKey hotKey)

Parameters

hotKey HotKey

ExecuteCancel()

public void ExecuteCancel()

ExecuteConfirm()

public (bool isConfirmSuccessful, bool isMainActionExecuted) ExecuteConfirm()

Returns

(bool isConfirmSuccessful, bool isMainActionExecuted)

ExecuteMainAction()

public void ExecuteMainAction()

ExecuteResetCamera()

public void ExecuteResetCamera()

ExecuteSwitchToCrafting()

public void ExecuteSwitchToCrafting()

ExecuteSwitchToRefinement()

public void ExecuteSwitchToRefinement()

ExecuteSwitchToSmelting()

public void ExecuteSwitchToSmelting()

OnCraftingLogicRefreshed(Crafting)

public void OnCraftingLogicRefreshed(Crafting newCraftingLogic)

Parameters

newCraftingLogic Crafting

OnFinalize()

public override void OnFinalize()

RefreshValues()

public override void RefreshValues()

SetConfirmInputKey(HotKey)

public void SetConfirmInputKey(HotKey hotKey)

Parameters

hotKey HotKey

SetCurrentDesignManually(CraftingTemplate, (CraftingPiece, int)[])

public void SetCurrentDesignManually(CraftingTemplate craftingTemplate, (CraftingPiece, int)[] pieces)

Parameters

craftingTemplate CraftingTemplate
pieces (CraftingPiece, int)[]

SetExitInputKey(HotKey)

public void SetExitInputKey(HotKey hotKey)

Parameters

hotKey HotKey

SetNextTabInputKey(HotKey)

public void SetNextTabInputKey(HotKey hotKey)

Parameters

hotKey HotKey

SetPreviousTabInputKey(HotKey)

public void SetPreviousTabInputKey(HotKey hotKey)

Parameters

hotKey HotKey

UpdateCraftingHero(CraftingAvailableHeroItemVM)

public void UpdateCraftingHero(CraftingAvailableHeroItemVM newHero)

Parameters

newHero CraftingAvailableHeroItemVM

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).