Official release is coming soon

Configuration

Default Values

Moss offers some default values like for theming or for drawing. You can access it via the Defaults class. Each type of default value has their corresponding method:

Defaults.GetDefaultColor("BACKGROUND");
Defaults.GetDefaultTextColor("TEXT_COLOR");
Defaults.GetDefaultValue<string>("LOG_FILE");

Custom Configurations

The SDK provides two ways of configuration. You can use the moss way with a simple json like this:

var theme = MossConfig.Get<string>("theme");

or you can use a custom configuration file:

var theme = MossExtension.Instance.Config.theme

Important

Configurations can only be set the moss way with MossConfig.Set.

Last updated

Was this helpful?