Class GameSettingEntry
Defines one editable setting in a plugin-provided game settings page.
public sealed class GameSettingEntry
- Inheritance
-
GameSettingEntry
- Inherited Members
Properties
Choices
public IReadOnlyList<GameSettingChoice>? Choices { get; init; }
Property Value
Description
public string? Description { get; init; }
Property Value
Key
public required string Key { get; init; }
Property Value
Kind
public required GameSettingKind Kind { get; init; }
Property Value
Maximum
public double Maximum { get; init; }
Property Value
Minimum
public double Minimum { get; init; }
Property Value
Placeholder
public string? Placeholder { get; init; }
Property Value
Step
public double Step { get; init; }
Property Value
Title
public required string Title { get; init; }
Property Value
Value
public required string Value { get; init; }
Property Value
Methods
Choice(string, string, string, IReadOnlyList<GameSettingChoice>, string?)
public static GameSettingEntry Choice(string key, string title, string value, IReadOnlyList<GameSettingChoice> choices, string? description = null)
Parameters
keystringtitlestringvaluestringchoicesIReadOnlyList<GameSettingChoice>descriptionstring
Returns
Number(string, string, double, double, double, double, string?)
public static GameSettingEntry Number(string key, string title, double value, double minimum = -1.7976931348623157E+308, double maximum = 1.7976931348623157E+308, double step = 1, string? description = null)
Parameters
Returns
Slider(string, string, double, double, double, double, string?)
public static GameSettingEntry Slider(string key, string title, double value, double minimum, double maximum, double step = 1, string? description = null)
Parameters
Returns
Text(string, string, string?, string?, string?)
public static GameSettingEntry Text(string key, string title, string? value = null, string? description = null, string? placeholder = null)
Parameters
Returns
Toggle(string, string, bool, string?)
public static GameSettingEntry Toggle(string key, string title, bool value, string? description = null)