Usage
This guide will describe you the core principles to make your mod compatible with Mod Settings.
Define a class
public enum MyStyle {
Rock = 0,
Electro = 1,
Jazz = 2,
Punk = 3,
Cyber = 4,
Reggae = 5
}
public class MySettings {
// Whether mod is enabled?
public let enabled: Bool;
// Some threshold between 0% an 100%.
public let threshold: Float;
// Some enum example.
public let style: MyStyle;
// We don't want to expose this.
public let secret: String;
}Binding properties
Metadata properties
Types and form fields
Bool · Switch
Int32 · Integer input
Float · Decimal input
Enum · Select input
Listen for changes
RegisterListenerToClass
RegisterListenerToModifications
Save changes dynamically
Full example
Last updated