Table of Contents

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 string

The 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 string

The name to be displayed in the settings menu for this property.

minValue decimal

The minimum int value that this property can be set to. This is used for the slider control.

maxValue decimal

The 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 string

The name to be displayed in the settings menu for this property.

minValue int

The minimum int value that this property can be set to. This is used for the slider control.

maxValue int

The 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 string

The name to be displayed in the settings menu for this property.

minValue float

The minimum float value that this property can be set to. This is used for the slider control.

maxValue float

The 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

decimal

MinValue

The minimum value the setting can be set to. Used by the slider control.

public decimal MinValue { get; }

Property Value

decimal

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