Class SettingsPropertyDefinitionWrapper
- Namespace
- MCM.Abstractions.Wrapper
- Assembly
- MCMv5.dll
public sealed class SettingsPropertyDefinitionWrapper : ISettingsPropertyDefinition, IPropertyDefinitionBool, IPropertyDefinitionDropdown, IPropertyDefinitionWithMinMax, IPropertyDefinitionWithEditableMinMax, IPropertyDefinitionWithFormat, IPropertyDefinitionWithCustomFormatter, IPropertyDefinitionWithId, IPropertyDefinitionText, IPropertyDefinitionGroupToggle, IPropertyGroupDefinition, IPropertyDefinitionButton, IPropertyDefinitionBase
- Inheritance
-
SettingsPropertyDefinitionWrapper
- Implements
- Inherited Members
Constructors
SettingsPropertyDefinitionWrapper(object)
public SettingsPropertyDefinitionWrapper(object @object)
Parameters
object
object
Properties
Content
public string Content { get; }
Property Value
CustomFormatter
public Type? CustomFormatter { get; }
Property Value
DisplayName
The display name of the setting in the settings menu.
public string DisplayName { get; }
Property Value
EditableMaxValue
public decimal EditableMaxValue { get; }
Property Value
EditableMinValue
public decimal EditableMinValue { get; }
Property Value
GroupName
The name of the settings group. Includes SubGroup notation if present.
public string GroupName { get; }
Property Value
GroupOrder
public int GroupOrder { get; }
Property Value
HintText
The hint text that is displayed at the bottom of the screen when the user hovers over the setting in the settings menu.
public string HintText { get; }
Property Value
Id
public string Id { get; }
Property Value
IsToggle
public bool IsToggle { get; }
Property Value
MaxValue
The maximum value the setting can be set to. Used by the slider control.
public decimal MaxValue { get; }
Property Value
MinValue
The minimum value the setting can be set to. Used by the slider control.
public decimal MinValue { get; }
Property Value
Order
Require restart of the game if the value is changed.
public int Order { get; }
Property Value
PropertyReference
public IRef PropertyReference { get; }
Property Value
RequireRestart
Require restart of the game if the value is changed.
public bool RequireRestart { get; }
Property Value
SelectedIndex
public int SelectedIndex { get; }
Property Value
SettingType
public SettingType SettingType { get; }
Property Value
ValueFormat
The format in which the slider's value will be displayed in.
public string ValueFormat { get; }
Property Value
Methods
Clone(bool)
public SettingsPropertyDefinition Clone(bool keepRefs = true)
Parameters
keepRefs
bool