From beddfe4223b4083f03288064d438848ab59b7011 Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Sun, 6 Sep 2020 14:26:42 -0600 Subject: [PATCH] Moved State enum to Settings class. Added checks for blip opacity based on whether map blips are enabled in settings --- SceneManager/Object Classes/Path.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/SceneManager/Object Classes/Path.cs b/SceneManager/Object Classes/Path.cs index 819b7ac..139bbf8 100644 --- a/SceneManager/Object Classes/Path.cs +++ b/SceneManager/Object Classes/Path.cs @@ -3,12 +3,7 @@ using System.Collections.Generic; namespace SceneManager { - public enum State - { - Uninitialized, - Creating, - Finished - } + public class Path { @@ -66,7 +61,10 @@ namespace SceneManager { wp.RemoveSpeedZone(); } - LowerWaypointBlipsOpacity(); + if (SettingsMenu.mapBlips.Checked) + { + LowerWaypointBlipsOpacity(); + } } public void EnablePath() @@ -79,7 +77,10 @@ namespace SceneManager wp.AddSpeedZone(); } } - RestoreWaypointBlipsOpacity(); + if (SettingsMenu.mapBlips.Checked) + { + RestoreWaypointBlipsOpacity(); + } }