1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Moved State enum to Settings class. Added checks for blip opacity based on whether map blips are enabled in settings

This commit is contained in:
Rich Dunne 2020-09-06 14:26:42 -06:00
parent 1bb4f2d750
commit beddfe4223

View file

@ -3,12 +3,7 @@ using System.Collections.Generic;
namespace SceneManager namespace SceneManager
{ {
public enum State
{
Uninitialized,
Creating,
Finished
}
public class Path public class Path
{ {
@ -66,7 +61,10 @@ namespace SceneManager
{ {
wp.RemoveSpeedZone(); wp.RemoveSpeedZone();
} }
LowerWaypointBlipsOpacity(); if (SettingsMenu.mapBlips.Checked)
{
LowerWaypointBlipsOpacity();
}
} }
public void EnablePath() public void EnablePath()
@ -79,7 +77,10 @@ namespace SceneManager
wp.AddSpeedZone(); wp.AddSpeedZone();
} }
} }
RestoreWaypointBlipsOpacity(); if (SettingsMenu.mapBlips.Checked)
{
RestoreWaypointBlipsOpacity();
}
} }