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

Updated Paths property due to data structure change

This commit is contained in:
Rich Dunne 2021-05-15 09:41:41 -06:00
parent 5b872b7c87
commit 97c21fbc93

View file

@ -34,13 +34,13 @@ namespace SceneManager.Menus
Menu.AddItem(DirectOptions); Menu.AddItem(DirectOptions);
DirectOptions.Enabled = true; DirectOptions.Enabled = true;
Menu.AddItem(DirectDriver = new UIMenuListScrollerItem<string>("Direct nearest driver to path", "", PathManager.Paths.Select(x => x.Name))); // This must instantiate here because the Paths change Menu.AddItem(DirectDriver = new UIMenuListScrollerItem<string>("Direct nearest driver to path", "", PathManager.Paths.Where(x => x != null).Select(x => x.Name))); // This must instantiate here because the Paths change
DirectDriver.ForeColor = Color.Gold; DirectDriver.ForeColor = Color.Gold;
DirectDriver.Enabled = true; DirectDriver.Enabled = true;
Menu.AddItem(DismissDriver); Menu.AddItem(DismissDriver);
DismissDriver.ForeColor = Color.Gold; DismissDriver.ForeColor = Color.Gold;
if (PathManager.Paths.Count == 0) if (PathManager.Paths.Length == 0)
{ {
DirectOptions.Enabled = false; DirectOptions.Enabled = false;
DirectDriver.Enabled = false; DirectDriver.Enabled = false;