Table of Contents

Class PropertyDropdownXmlModel

Namespace
MCM.Abstractions.Xml
Assembly
MCMv5.dll
<Dropdown Id="" DisplayName="" Default="0">
  <Option Value="First" />
  <Option Value="Second" />
</Dropdown>

Default and Value are option indices.

public class PropertyDropdownXmlModel : PropertyBaseXmlModel, IPropertyDefinitionWithId, IPropertyDefinitionDropdown, IPropertyDefinitionBase
Inheritance
PropertyDropdownXmlModel
Implements
Inherited Members

Fields

ElementName

public const string ElementName = "Dropdown"

Field Value

string

OptionElementName

public const string OptionElementName = "Option"

Field Value

string

Properties

DefaultSelectedIndex

The declared default option index (Default attribute).

public int DefaultSelectedIndex { get; set; }

Property Value

int

SelectedIndex

The current option index (Value attribute), the default when absent.

public int SelectedIndex { get; set; }

Property Value

int

Values

The options, in display order.

public string[] Values { get; set; }

Property Value

string[]

Methods

Read(XmlNode)

Fills the model from the element. Returns false when the element is not valid.

protected override bool Read(XmlNode node)

Parameters

node XmlNode

Returns

bool

This page was last modified at 10/17/2026 18:11:59 +03:00 (UTC).

Commit Message
Author:    Vitalii Mikhailov
Commit:    4c11f9b0c8db5363fd147c4f156b8d8151ad53b0
* Mods can declare their settings in their SubModule.xml, which MCM will render if installed.

* A warning is logged when two mods declare settings with the same id
* Updated to UIExtenderEx v3
* Fixed controller tab switching in the options screen landing on the wrong page next to Mod Options
* Fixed Cancel in the options screen undoing MCM changes before the game ask...