Class PropertyFloatingIntegerXmlModel
- Namespace
- MCM.Abstractions.Xml
- Assembly
- MCMv5.dll
<FloatingInteger Id="" DisplayName="" MinValue="0" MaxValue="1" Default="0.5" ValueFormat="0.00" />
public class PropertyFloatingIntegerXmlModel : PropertyBaseXmlModel, IPropertyDefinitionBase, IPropertyDefinitionWithId, IPropertyDefinitionWithMinMax, IPropertyDefinitionWithFormat
- Inheritance
-
PropertyFloatingIntegerXmlModel
- Implements
- Inherited Members
Fields
ElementName
public const string ElementName = "FloatingInteger"
Field Value
Properties
DefaultValue
The declared default (Default attribute), MinValue when absent.
public decimal DefaultValue { get; set; }
Property Value
MaxValue
The maximum value the setting can be set to. Used by the slider control.
public decimal MaxValue { get; set; }
Property Value
MinValue
The minimum value the setting can be set to. Used by the slider control.
public decimal MinValue { get; set; }
Property Value
Value
The current value (Value attribute), the default when absent.
public decimal Value { get; set; }
Property Value
ValueFormat
The format in which the slider's value will be displayed in.
public string ValueFormat { get; set; }
Property Value
Methods
Read(XmlNode)
Fills the model from the element. Returns false when the element is not valid.
protected override bool Read(XmlNode node)
Parameters
nodeXmlNode
Returns
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...