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

* Added API

* Updated version

* Updated RNUI

* Added checks for null paths

* BelongsToPath menu item now toggles on/off depending if any paths exist
This commit is contained in:
Rich 2021-08-03 11:07:14 -06:00 committed by GitHub
parent d118513185
commit 56a770b718
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 63 additions and 22 deletions

View file

@ -61,7 +61,7 @@ namespace SceneManager.Menus
//setBarrierTrafficLight.Index = 3;
}
Menu.AddItem(BelongsToPath);
BelongsToPath.Enabled = PathManager.Paths.Count() > 0 ? true : false;
BelongsToPath.Enabled = PathManager.Paths.Any(x => x != null);
BelongsToPath.Checked = false;
AddToPath = new UIMenuListScrollerItem<string>("Path", "The path the barrier will be saved with when the path is exported.", PathManager.Paths.Where(x => x != null).Select(x => x.Name));