Table of Contents

Class PresetXmlModel

Namespace
MCM.Abstractions.Xml
Assembly
MCMv5.dll
<Preset Id="performance" DisplayName="{=id}Performance">
  <Property Id="SomeBool" Value="true" />
</Preset>

Values are written the way the property's Default attribute is written. A dropdown takes the option index.

public sealed class PresetXmlModel
Inheritance
PresetXmlModel
Inherited Members

Fields

ElementName

public const string ElementName = "Preset"

Field Value

string

PropertyElementName

public const string PropertyElementName = "Property"

Field Value

string

Properties

DisplayName

public string DisplayName { get; set; }

Property Value

string

Id

public string Id { get; set; }

Property Value

string

Values

Property id to raw value text.

public Dictionary<string, string> Values { get; set; }

Property Value

Dictionary<string, string>

Methods

FromXml(XmlNode)

Returns null when the element has no Id.

public static PresetXmlModel? FromXml(XmlNode node)

Parameters

node XmlNode

Returns

PresetXmlModel

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...