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

Updated Waypoint property names resulting from Waypoint refactor

This commit is contained in:
Rich Dunne 2020-08-20 15:40:32 -06:00
parent c4eb57bd69
commit 95aef6c5a7

View file

@ -8,14 +8,13 @@ namespace SceneManager
class EditPathMenu
{
private static UIMenuItem editPathWaypoints, deletePath;
public static UIMenuCheckboxItem togglePath, debugGraphics;
public static UIMenuCheckboxItem togglePath;
public static void BuildEditPathMenu()
{
MenuManager.editPathMenu.AddItem(togglePath = new UIMenuCheckboxItem("Disable Path", false));
MenuManager.editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
MenuManager.editPathMenu.AddItem(deletePath = new UIMenuItem("Delete Path"));
//MenuManager.editPathMenu.AddItem(debugGraphics = new UIMenuCheckboxItem("Enable Debug Graphics", false));
MenuManager.editPathMenu.RefreshIndex();
MenuManager.editPathMenu.OnItemSelect += EditPath_OnItemSelected;
@ -48,7 +47,7 @@ namespace SceneManager
foreach (Waypoint wd in TrafficMenu.paths[TrafficMenu.editPath.Index].Waypoint)
{
wd.WaypointBlip.Alpha = 0.5f;
wd.Blip.Alpha = 0.5f;
if (wd.CollectorRadiusBlip)
{
wd.CollectorRadiusBlip.Alpha = 0.25f;
@ -62,7 +61,7 @@ namespace SceneManager
foreach (Waypoint wd in TrafficMenu.paths[TrafficMenu.editPath.Index].Waypoint)
{
wd.WaypointBlip.Alpha = 1.0f;
wd.Blip.Alpha = 1.0f;
if (wd.CollectorRadiusBlip)
{
wd.CollectorRadiusBlip.Alpha = 0.5f;