Namespace Nautilus.Options.Attributes
Classes
- ButtonAttribute
- Attribute used to signify the decorated method should be represented in the mod's options menu as a ModButtonOption. When the button is clicked, the given method will run.
- ChoiceAttribute
- Attribute used to signify the decorated member should be represented in the mod's options menu as a ModChoiceOption<T>. Works for either int index-based, string-based, or Enum-based members.
- ColorPickerAttribute
- Attribute used to signify the decorated UnityEngine.Color should be represented in the mod's option menu as a ModColorOption.
- IgnoreMemberAttribute
- Attribute used to signify the given property, field or method should be ignored when generating your mod options menu.
- KeybindAttribute
- Attribute used to signify the decorated UnityEngine.KeyCode should be represented in the mod's option menu as a ModKeybindOption.
- MenuAttribute
- Attribute used to signify a ModOptions menu should be automatically generated from a ConfigFile, as well as specifying options for handling the ConfigFile and ModOptions menu.
- ModOptionAttribute
- Abstract base attribute used to signify the decorated public member should generate a OptionItem in a mod's options menu.
- ModOptionEventAttribute
- Abstract base attribute used to signify a method to call whenever the derivative event is invoked for the decorated member.
- OnChangeAttribute
- Attribute used to signify a method to call whenever the decorated member's value changes.
- OnGameObjectCreatedAttribute
- Attribute used to signify a method to call whenever the UnityEngine.GameObject for the OptionItem corresponding to the decorated member is created.
- SliderAttribute
- Attribute used to signify the specified float, double or int should be represented in the mod's option menu as a ModSliderOption.
- ToggleAttribute
- Attribute used to signify the decorated bool should be represented in the mod's option menu as a ModToggleOption.
Enums
- MenuAttribute.LoadEvents
- Specifies after which events the config file should be loaded from disk automatically.
- MenuAttribute.Members
- Specifies which members of the ConfigFile will be parsed and added to the menu.
- MenuAttribute.SaveEvents
- Specifies after which events the config file should be saved to disk automatically.