Table of Contents

Class GroupedOptionCategoryVM

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

Constructors

GroupedOptionCategoryVM(OptionsVM, TextObject, OptionCategory, bool, bool)

public GroupedOptionCategoryVM(OptionsVM options, TextObject name, OptionCategory category, bool isEnabled, bool isResetSupported = false)

Parameters

options OptionsVM
name TextObject
category OptionCategory
isEnabled bool
isResetSupported bool

Fields

_options

protected readonly OptionsVM _options

Field Value

OptionsVM

Properties

AllOptions

public IEnumerable<GenericOptionDataVM> AllOptions { get; }

Property Value

IEnumerable<GenericOptionDataVM>

BaseOptions

[DataSourceProperty]
public MBBindingList<GenericOptionDataVM> BaseOptions { get; set; }

Property Value

MBBindingList<GenericOptionDataVM>

Groups

[DataSourceProperty]
public MBBindingList<OptionGroupVM> Groups { get; set; }

Property Value

MBBindingList<OptionGroupVM>

IsEnabled

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

Property Value

bool

IsResetSupported

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

Property Value

bool

Name

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

Property Value

string

ResetText

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

Property Value

string

Methods

ExecuteResetToDefault()

public void ExecuteResetToDefault()

GetOption(NativeOptionsType)

public GenericOptionDataVM GetOption(NativeOptions.NativeOptionsType optionType)

Parameters

optionType NativeOptions.NativeOptionsType

Returns

GenericOptionDataVM

GetOption(ManagedOptionsType)

public GenericOptionDataVM GetOption(ManagedOptions.ManagedOptionsType optionType)

Parameters

optionType ManagedOptions.ManagedOptionsType

Returns

GenericOptionDataVM

RefreshValues()

public override void RefreshValues()

ResetData()

public void ResetData()

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