Class SettingsPropertyDefinition
- Namespace
- MCM.Abstractions
- Assembly
- MCMv5.dll
public sealed class SettingsPropertyDefinition : ISettingsPropertyDefinition, IPropertyDefinitionBool, IPropertyDefinitionDropdown, IPropertyDefinitionWithMinMax, IPropertyDefinitionWithEditableMinMax, IPropertyDefinitionWithFormat, IPropertyDefinitionWithCustomFormatter, IPropertyDefinitionWithId, IPropertyDefinitionText, IPropertyDefinitionGroupToggle, IPropertyGroupDefinition, IPropertyDefinitionButton, IPropertyDefinitionBase
- Inheritance
-
SettingsPropertyDefinition
- Implements
- Inherited Members
Constructors
SettingsPropertyDefinition(IPropertyDefinitionBase, IPropertyGroupDefinition, IRef, char)
public SettingsPropertyDefinition(IPropertyDefinitionBase propertyDefinition, IPropertyGroupDefinition propertyGroupDefinition, IRef propertyReference, char subGroupDelimiter)
Parameters
propertyDefinition
IPropertyDefinitionBasepropertyGroupDefinition
IPropertyGroupDefinitionpropertyReference
IRefsubGroupDelimiter
char
SettingsPropertyDefinition(IEnumerable<IPropertyDefinitionBase>, IPropertyGroupDefinition, IRef, char)
public SettingsPropertyDefinition(IEnumerable<IPropertyDefinitionBase> propertyDefinitions, IPropertyGroupDefinition propertyGroupDefinition, IRef propertyReference, char subGroupDelimiter)
Parameters
propertyDefinitions
IEnumerable<IPropertyDefinitionBase>propertyGroupDefinition
IPropertyGroupDefinitionpropertyReference
IRefsubGroupDelimiter
char
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
Returns
ToString()
public override string ToString()
Returns
This page was last modified at 06/20/2024 23:41:40 +03:00 (UTC).
Commit Message
Author: Vitalii Mikhailov
Commit: 22da042e932b2b1a231a7120255b8281d0711bc1
Added SettingPropertyGroupMetadata
Removed obsolete code