Class SettingPropertyAttribute
- Namespace
- MCM.Abstractions.Attributes.v1
- Assembly
- MCMv5.dll
Tells the Settings system that this property should be used for the settings menu.
[AttributeUsage(AttributeTargets.Property)]
public sealed class SettingPropertyAttribute : BaseSettingPropertyAttribute, IPropertyDefinitionBase, IPropertyDefinitionWithMinMax
- Inheritance
-
SettingPropertyAttribute
- Implements
- Inherited Members
Constructors
SettingPropertyAttribute(string)
Tells the Settings system that this property should be used for the settings menu.
public SettingPropertyAttribute(string displayName)
Parameters
displayName
stringThe name to be displayed in the settings menu for this property.
SettingPropertyAttribute(string, decimal, decimal)
Tells the Settings system that this property should be used for the settings menu.
public SettingPropertyAttribute(string displayName, decimal minValue, decimal maxValue)
Parameters
displayName
stringThe name to be displayed in the settings menu for this property.
minValue
decimalThe minimum int value that this property can be set to. This is used for the slider control.
maxValue
decimalThe maximum int value that this property can be set to. This is used for the slider control.
SettingPropertyAttribute(string, int, int)
Tells the Settings system that this property should be used for the settings menu.
public SettingPropertyAttribute(string displayName, int minValue, int maxValue)
Parameters
displayName
stringThe name to be displayed in the settings menu for this property.
minValue
intThe minimum int value that this property can be set to. This is used for the slider control.
maxValue
intThe maximum int value that this property can be set to. This is used for the slider control.
SettingPropertyAttribute(string, float, float)
Tells the Settings system that this property should be used for the settings menu.
public SettingPropertyAttribute(string displayName, float minValue, float maxValue)
Parameters
displayName
stringThe name to be displayed in the settings menu for this property.
minValue
floatThe minimum float value that this property can be set to. This is used for the slider control.
maxValue
floatThe maximum float value that this property can be set to. This is used for the slider control.
Properties
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
This page was last modified at 12/23/2022 11:49:56 +02:00 (UTC).
Commit Message
Author: Aragas
Commit: aa889a1db7974dc13c9ff22e5740d958a2228b18
* Added MCM Source Package NuGet for easier integration