A library for adding custom settings to Content Warning.
- Register custom settings
- Manual registration
- Attribute-based registration
- Custom categories
- Addition inputs
- Text input (TextField)
- Integer input (Slider)
- Boolean input (Checkbox)
- More input types
- Networking support
If you just want to look at some code, take a look at the Example Plugin.
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";
}
This repository follows Conventional Commits
Commits will be rejected automatically if they do not follow the format specified below.
<type>(optional scope): <description>
Example: feat(pre-event): add speakers section
- CommanderCat - Creator and Developer
- dhkatz - Developer and Maintainer
Released under GPL-3.0 by @Commander-Cat101.