Gears
API ReferenceAttributes

SettingOnAppliedAttribute

Binds a static method to OnSettingApplied. Global settings only.

Sealed classNamespace GearsAPI.AttributesAssembly GearsAPI.dllSource
public sealed class SettingOnAppliedAttribute : SettingListenerAttribute

Binds a static method to the named setting's OnSettingApplied event (IGlobalModSetting), which fires when the setting is applied. Global settings only, including Color and Binding. Required method signature: static void M(IGlobalModSetting setting).

Inheritance: Object → Attribute → SettingPathAttribute → SettingListenerAttribute → SettingOnAppliedAttribute

Constructors

SettingOnAppliedAttribute(String)

public SettingOnAppliedAttribute(string settingPath)

Initializes the attribute with the setting path.

On this page