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
#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

ContentSettings

A library for adding custom settings to Content Warning.

Build GitHub release Thunderstore - ContentSettings NuGet - CommanderCat101.ContentSettings

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

License

Released under GPL-3.0 by @Commander-Cat101.

Product 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. 
.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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CommanderCat101.ContentSettings:

Package Downloads
RedstoneWizard08.ConfigurableWarning

Makes the game configurable!

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.2 340 4/22/2024
1.2.1 137 4/22/2024
1.2.0 117 4/22/2024
1.1.0 132 4/13/2024
1.0.3 81 4/13/2024
1.0.2 75 4/12/2024