Table of Contents

Class GenericOptionDataVM

Namespace
TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
Assembly
TaleWorlds.MountAndBlade.ViewModelCollection.dll
public abstract class GenericOptionDataVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
GenericOptionDataVM
Implements
Derived
Inherited Members

Constructors

GenericOptionDataVM(OptionsVM, IOptionData, TextObject, TextObject, OptionsDataType)

protected GenericOptionDataVM(OptionsVM optionsVM, IOptionData option, TextObject name, TextObject description, OptionsVM.OptionsDataType typeID)

Parameters

optionsVM OptionsVM
option IOptionData
name TextObject
description TextObject
typeID OptionsVM.OptionsDataType

Fields

Option

protected IOptionData Option

Field Value

IOptionData

_optionsVM

protected OptionsVM _optionsVM

Field Value

OptionsVM

Properties

Description

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

Property Value

string

Hint

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

Property Value

HintViewModel

ImageIDs

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

Property Value

string[]

IsAction

public bool IsAction { get; }

Property Value

bool

IsEnabled

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

Property Value

bool

IsNative

public bool IsNative { get; }

Property Value

bool

Name

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

Property Value

string

OptionTypeID

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

Property Value

int

Methods

ApplyValue()

public abstract void ApplyValue()

Cancel()

public abstract void Cancel()

GetOptionData()

public IOptionData GetOptionData()

Returns

IOptionData

GetOptionType()

public object GetOptionType()

Returns

object

IsChanged()

public abstract bool IsChanged()

Returns

bool

RefreshValues()

public override void RefreshValues()

ResetData()

public abstract void ResetData()

ResetToDefault()

public void ResetToDefault()

SetValue(float)

public abstract void SetValue(float value)

Parameters

value float

UpdateData(bool)

public virtual void UpdateData(bool initUpdate)

Parameters

initUpdate bool

UpdateEnableState()

public void UpdateEnableState()

UpdateValue()

public abstract void UpdateValue()

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