Class OptionsPanelHandler
A handler class for registering your custom in-game mod options.
public static class OptionsPanelHandler
- Inheritance
-
OptionsPanelHandler
- Inherited Members
Methods
RegisterModOptions(ModOptions)
Registers your mod options to the in-game menu.
public static void RegisterModOptions(ModOptions options)
Parameters
options
ModOptions- The mod options. Create a new child class inheriting from this one and add your options to it.
- See Also
RegisterModOptions<T>()
Generates an options menu based on the attributes and members declared in the ConfigFile
and registers it to the in-game menu.
public static T RegisterModOptions<T>() where T : ConfigFile, new()
Returns
- T
- An instance of the
T
: ConfigFile with values loaded from the config file on disk.
Type Parameters
T
- A class derived from ConfigFile to generate the options menu from.