Skip to content

Commit

Permalink
[ND] Add setting to completely disable the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Mar 13, 2023
1 parent 0b30bbb commit 2438ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core_NightDarkener/NightDarkener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ private void Start()
BeSmart = Config.Bind("General", "Only on specific maps", true, "Only darken maps that are unlikely to have lights turned on at night (likely to be vacant). Turn off to make all maps dark at night.");
BeSmartAlwaysOnCustom = Config.Bind("General", "Always enable on custom maps", true, "If the \"Only on specific maps\" setting is enabled, also darken all custom maps (otherwise all custom maps will not be darkened).");

SceneManager.sceneLoaded += SceneManager_sceneLoaded;
if (Config.Bind("General", "Enabled", true, "Set to false to completely disable this plugin. Changes take effect after game restart.").Value)
SceneManager.sceneLoaded += SceneManager_sceneLoaded;
}

private static Color SubtractColor(Color color, float amount)
Expand Down

0 comments on commit 2438ba0

Please sign in to comment.