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:
parent
c4eb57bd69
commit
95aef6c5a7
1 changed files with 3 additions and 4 deletions
|
|
@ -8,14 +8,13 @@ namespace SceneManager
|
||||||
class EditPathMenu
|
class EditPathMenu
|
||||||
{
|
{
|
||||||
private static UIMenuItem editPathWaypoints, deletePath;
|
private static UIMenuItem editPathWaypoints, deletePath;
|
||||||
public static UIMenuCheckboxItem togglePath, debugGraphics;
|
public static UIMenuCheckboxItem togglePath;
|
||||||
|
|
||||||
public static void BuildEditPathMenu()
|
public static void BuildEditPathMenu()
|
||||||
{
|
{
|
||||||
MenuManager.editPathMenu.AddItem(togglePath = new UIMenuCheckboxItem("Disable Path", false));
|
MenuManager.editPathMenu.AddItem(togglePath = new UIMenuCheckboxItem("Disable Path", false));
|
||||||
MenuManager.editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
MenuManager.editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
||||||
MenuManager.editPathMenu.AddItem(deletePath = new UIMenuItem("Delete Path"));
|
MenuManager.editPathMenu.AddItem(deletePath = new UIMenuItem("Delete Path"));
|
||||||
//MenuManager.editPathMenu.AddItem(debugGraphics = new UIMenuCheckboxItem("Enable Debug Graphics", false));
|
|
||||||
|
|
||||||
MenuManager.editPathMenu.RefreshIndex();
|
MenuManager.editPathMenu.RefreshIndex();
|
||||||
MenuManager.editPathMenu.OnItemSelect += EditPath_OnItemSelected;
|
MenuManager.editPathMenu.OnItemSelect += EditPath_OnItemSelected;
|
||||||
|
|
@ -48,7 +47,7 @@ namespace SceneManager
|
||||||
|
|
||||||
foreach (Waypoint wd in TrafficMenu.paths[TrafficMenu.editPath.Index].Waypoint)
|
foreach (Waypoint wd in TrafficMenu.paths[TrafficMenu.editPath.Index].Waypoint)
|
||||||
{
|
{
|
||||||
wd.WaypointBlip.Alpha = 0.5f;
|
wd.Blip.Alpha = 0.5f;
|
||||||
if (wd.CollectorRadiusBlip)
|
if (wd.CollectorRadiusBlip)
|
||||||
{
|
{
|
||||||
wd.CollectorRadiusBlip.Alpha = 0.25f;
|
wd.CollectorRadiusBlip.Alpha = 0.25f;
|
||||||
|
|
@ -62,7 +61,7 @@ namespace SceneManager
|
||||||
|
|
||||||
foreach (Waypoint wd in TrafficMenu.paths[TrafficMenu.editPath.Index].Waypoint)
|
foreach (Waypoint wd in TrafficMenu.paths[TrafficMenu.editPath.Index].Waypoint)
|
||||||
{
|
{
|
||||||
wd.WaypointBlip.Alpha = 1.0f;
|
wd.Blip.Alpha = 1.0f;
|
||||||
if (wd.CollectorRadiusBlip)
|
if (wd.CollectorRadiusBlip)
|
||||||
{
|
{
|
||||||
wd.CollectorRadiusBlip.Alpha = 0.5f;
|
wd.CollectorRadiusBlip.Alpha = 0.5f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue