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:
parent
5b872b7c87
commit
97c21fbc93
1 changed files with 2 additions and 2 deletions
|
|
@ -34,13 +34,13 @@ namespace SceneManager.Menus
|
|||
|
||||
Menu.AddItem(DirectOptions);
|
||||
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.Enabled = true;
|
||||
Menu.AddItem(DismissDriver);
|
||||
DismissDriver.ForeColor = Color.Gold;
|
||||
|
||||
if (PathManager.Paths.Count == 0)
|
||||
if (PathManager.Paths.Length == 0)
|
||||
{
|
||||
DirectOptions.Enabled = false;
|
||||
DirectDriver.Enabled = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue