Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions SecretAPI/Features/UserSettings/CustomButtonSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ protected CustomButtonSetting(int? id, string label, string buttonText, float? h
public string Text
{
get => Base.ButtonText;
[Obsolete("Setting this value is not currently supported.")]
set => Base.ButtonText = value;
}

Expand All @@ -54,6 +55,7 @@ public string Text
public float HoldTime
{
get => Base.HoldTimeSeconds;
[Obsolete("Setting this value is not currently supported.")]
set => Base.HoldTimeSeconds = value;
}
}
Expand Down
2 changes: 2 additions & 0 deletions SecretAPI/Features/UserSettings/CustomDropdownSetting.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace SecretAPI.Features.UserSettings
{
using System;
using global::UserSettings.ServerSpecific;

/// <summary>
Expand Down Expand Up @@ -46,6 +47,7 @@ protected CustomDropdownSetting(
public string[] Options
{
get => Base.Options;
[Obsolete("Setting this value is not currently supported.")]
set => Base.Options = value;
}

Expand Down
5 changes: 5 additions & 0 deletions SecretAPI/Features/UserSettings/CustomKeybindSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@ protected CustomKeybindSetting(

/// <inheritdoc/>
public new SSKeybindSetting Base { get; }

/// <summary>
/// Gets a value indicating whether the keybind is pressed.
/// </summary>
public bool IsPressed => Base.SyncIsPressed;
}
}
5 changes: 5 additions & 0 deletions SecretAPI/Features/UserSettings/CustomPlainTextSetting.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace SecretAPI.Features.UserSettings
{
using System;
using global::UserSettings.ServerSpecific;
using TMPro;

Expand Down Expand Up @@ -47,6 +48,7 @@ protected CustomPlainTextSetting(
public string InputText
{
get => Base.SyncInputText;
[Obsolete("Setting this value is not currently supported.")]
set => Base.SyncInputText = value;
}

Expand All @@ -56,6 +58,7 @@ public string InputText
public TMP_InputField.ContentType ContentType
{
get => Base.ContentType;
[Obsolete("Setting this value is not currently supported.")]
set => Base.ContentType = value;
}

Expand All @@ -65,6 +68,7 @@ public TMP_InputField.ContentType ContentType
public string Placeholder
{
get => Base.Placeholder;
[Obsolete("Setting this value is not currently supported.")]
set => Base.Placeholder = value;
}

Expand All @@ -74,6 +78,7 @@ public string Placeholder
public int CharacterLimit
{
get => Base.CharacterLimit;
[Obsolete("This is not supported and is unlikely to.")]
set => Base.CharacterLimit = value;
}
}
Expand Down
4 changes: 4 additions & 0 deletions SecretAPI/Features/UserSettings/CustomSliderSetting.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace SecretAPI.Features.UserSettings
{
using System;
using global::UserSettings.ServerSpecific;

/// <summary>
Expand Down Expand Up @@ -62,6 +63,7 @@ protected CustomSliderSetting(
public float MinimumValue
{
get => Base.MinValue;
[Obsolete("Setting this value is not currently supported.")]
set => Base.MinValue = value;
}

Expand All @@ -71,6 +73,7 @@ public float MinimumValue
public float MaximumValue
{
get => Base.MaxValue;
[Obsolete("Setting this value is not currently supported.")]
set => Base.MaxValue = value;
}

Expand All @@ -80,6 +83,7 @@ public float MaximumValue
public float DefaultValue
{
get => Base.DefaultValue;
[Obsolete("Setting this value is not currently supported.")]
set => Base.DefaultValue = value;
}
}
Expand Down
10 changes: 10 additions & 0 deletions SecretAPI/Features/UserSettings/CustomTextAreaSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,15 @@ protected CustomTextAreaSetting(

/// <inheritdoc />
public new SSTextArea Base { get; }

/// <summary>
/// Gets the foldout mode.
/// </summary>
public SSTextArea.FoldoutMode Foldout => Base.Foldout;

/// <summary>
/// Gets the <see cref="TextAlignmentOptions"/> of the setting.
/// </summary>
public TextAlignmentOptions AlignmentOptions => Base.AlignmentOptions;
}
}