From cdc6ab36e98fc35ce1607a278f1a74793cdf33c2 Mon Sep 17 00:00:00 2001 From: Misfiy <85962933+Misfiy@users.noreply.github.com> Date: Mon, 26 May 2025 15:35:10 +0200 Subject: [PATCH 1/2] ! --- .../Features/UserSettings/CustomKeybindSetting.cs | 5 +++++ .../Features/UserSettings/CustomTextAreaSetting.cs | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/SecretAPI/Features/UserSettings/CustomKeybindSetting.cs b/SecretAPI/Features/UserSettings/CustomKeybindSetting.cs index db292dc..63b232f 100644 --- a/SecretAPI/Features/UserSettings/CustomKeybindSetting.cs +++ b/SecretAPI/Features/UserSettings/CustomKeybindSetting.cs @@ -38,5 +38,10 @@ protected CustomKeybindSetting( /// public new SSKeybindSetting Base { get; } + + /// + /// Gets a value indicating whether the keybind is pressed. + /// + public bool IsPressed => Base.SyncIsPressed; } } \ No newline at end of file diff --git a/SecretAPI/Features/UserSettings/CustomTextAreaSetting.cs b/SecretAPI/Features/UserSettings/CustomTextAreaSetting.cs index 7d0e20d..ea4b4d8 100644 --- a/SecretAPI/Features/UserSettings/CustomTextAreaSetting.cs +++ b/SecretAPI/Features/UserSettings/CustomTextAreaSetting.cs @@ -38,5 +38,15 @@ protected CustomTextAreaSetting( /// public new SSTextArea Base { get; } + + /// + /// Gets the foldout mode. + /// + public SSTextArea.FoldoutMode Foldout => Base.Foldout; + + /// + /// Gets the of the setting. + /// + public TextAlignmentOptions AlignmentOptions => Base.AlignmentOptions; } } \ No newline at end of file From 84f457ce8c1d25fa6647c0ca4ba9644b102bd669 Mon Sep 17 00:00:00 2001 From: Misfiy <85962933+Misfiy@users.noreply.github.com> Date: Mon, 26 May 2025 16:09:10 +0200 Subject: [PATCH 2/2] Obsolete --- SecretAPI/Features/UserSettings/CustomButtonSetting.cs | 2 ++ SecretAPI/Features/UserSettings/CustomDropdownSetting.cs | 2 ++ SecretAPI/Features/UserSettings/CustomPlainTextSetting.cs | 5 +++++ SecretAPI/Features/UserSettings/CustomSliderSetting.cs | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/SecretAPI/Features/UserSettings/CustomButtonSetting.cs b/SecretAPI/Features/UserSettings/CustomButtonSetting.cs index 9f55edb..c764083 100644 --- a/SecretAPI/Features/UserSettings/CustomButtonSetting.cs +++ b/SecretAPI/Features/UserSettings/CustomButtonSetting.cs @@ -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; } @@ -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; } } diff --git a/SecretAPI/Features/UserSettings/CustomDropdownSetting.cs b/SecretAPI/Features/UserSettings/CustomDropdownSetting.cs index 94fb758..ec2f146 100644 --- a/SecretAPI/Features/UserSettings/CustomDropdownSetting.cs +++ b/SecretAPI/Features/UserSettings/CustomDropdownSetting.cs @@ -1,5 +1,6 @@ namespace SecretAPI.Features.UserSettings { + using System; using global::UserSettings.ServerSpecific; /// @@ -46,6 +47,7 @@ protected CustomDropdownSetting( public string[] Options { get => Base.Options; + [Obsolete("Setting this value is not currently supported.")] set => Base.Options = value; } diff --git a/SecretAPI/Features/UserSettings/CustomPlainTextSetting.cs b/SecretAPI/Features/UserSettings/CustomPlainTextSetting.cs index deed7e7..806d12f 100644 --- a/SecretAPI/Features/UserSettings/CustomPlainTextSetting.cs +++ b/SecretAPI/Features/UserSettings/CustomPlainTextSetting.cs @@ -1,5 +1,6 @@ namespace SecretAPI.Features.UserSettings { + using System; using global::UserSettings.ServerSpecific; using TMPro; @@ -47,6 +48,7 @@ protected CustomPlainTextSetting( public string InputText { get => Base.SyncInputText; + [Obsolete("Setting this value is not currently supported.")] set => Base.SyncInputText = value; } @@ -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; } @@ -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; } @@ -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; } } diff --git a/SecretAPI/Features/UserSettings/CustomSliderSetting.cs b/SecretAPI/Features/UserSettings/CustomSliderSetting.cs index 6cdac59..95cdc55 100644 --- a/SecretAPI/Features/UserSettings/CustomSliderSetting.cs +++ b/SecretAPI/Features/UserSettings/CustomSliderSetting.cs @@ -1,5 +1,6 @@ namespace SecretAPI.Features.UserSettings { + using System; using global::UserSettings.ServerSpecific; /// @@ -62,6 +63,7 @@ protected CustomSliderSetting( public float MinimumValue { get => Base.MinValue; + [Obsolete("Setting this value is not currently supported.")] set => Base.MinValue = value; } @@ -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; } @@ -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; } }