CommanderCat101.ContentSettings
1.2.2
dotnet add package CommanderCat101.ContentSettings --version 1.2.2
NuGet\Install-Package CommanderCat101.ContentSettings -Version 1.2.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommanderCat101.ContentSettings" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommanderCat101.ContentSettings --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CommanderCat101.ContentSettings, 1.2.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CommanderCat101.ContentSettings as a Cake Addin #addin nuget:?package=CommanderCat101.ContentSettings&version=1.2.2 // Install CommanderCat101.ContentSettings as a Cake Tool #tool nuget:?package=CommanderCat101.ContentSettings&version=1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ContentSettings
A library for adding custom settings to Content Warning.
Features
- Register custom settings
- Manual registration
- Attribute-based registration
- Custom categories
- Addition inputs
- Text input (TextField)
- Integer input (Slider)
- Boolean input (Checkbox)
Planned
- More input types
- Networking support
Usage
If you just want to look at some code, take a look at the Example Plugin.
Registering a Setting
void Awake()
{
SettingsLoader.RegisterSetting("YOUR TAB", new ExampleSetting());
}
public class ExampleSetting : FloatSetting, ICustomSetting
{
public override void ApplyValue()
{
// Do something with the value
}
public override float GetDefaultValue() => 0.5f;
public override float2 GetMinMaxValue() => new(0f, 1f);
public string GetDisplayName() => "Example Setting";
}
Contributing
This repository follows Conventional Commits
Commits will be rejected automatically if they do not follow the format specified below.
Format
<type>(optional scope): <description>
Example: feat(pre-event): add speakers section
Credits
- CommanderCat - Creator and Developer
- dhkatz - Developer and Maintainer
License
Released under GPL-3.0 by @Commander-Cat101.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- BepInEx.AutoPlugin (>= 1.1.0)
- BepInEx.Core (>= 5.4.21)
- BepInEx.PluginInfoProps (>= 2.1.0)
- UnityEngine.Modules (>= 2022.3.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.