mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40:29 +01:00
Updated namespace references
This commit is contained in:
parent
f415c2b69e
commit
7fc1a4f8e6
1 changed files with 5 additions and 6 deletions
|
|
@ -1,11 +1,12 @@
|
||||||
using RAGENativeUI;
|
using RAGENativeUI;
|
||||||
using RAGENativeUI.Elements;
|
using RAGENativeUI.Elements;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using SceneManager.Objects;
|
|
||||||
using SceneManager.Utils;
|
using SceneManager.Utils;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Rage;
|
using Rage;
|
||||||
|
using SceneManager.Managers;
|
||||||
|
using SceneManager.Paths;
|
||||||
|
|
||||||
namespace SceneManager.Menus
|
namespace SceneManager.Menus
|
||||||
{
|
{
|
||||||
|
|
@ -49,13 +50,11 @@ namespace SceneManager.Menus
|
||||||
// When the user clicks on a path, that path needs to be added from Settings.importedPaths to PathMainMenu.paths
|
// When the user clicks on a path, that path needs to be added from Settings.importedPaths to PathMainMenu.paths
|
||||||
Path importedPath = PathManager.ImportPath(Settings.ImportedPaths.FirstOrDefault(x => x.Name == selectedItem.Text));
|
Path importedPath = PathManager.ImportPath(Settings.ImportedPaths.FirstOrDefault(x => x.Name == selectedItem.Text));
|
||||||
importedPath.Load();
|
importedPath.Load();
|
||||||
Game.LogTrivial($"{selectedItem.Text} added to paths collection as path #{importedPath.Number}. Paths count: {PathManager.Paths.Count}");
|
Game.LogTrivial($"{selectedItem.Text} added to paths collection. Paths count: {PathManager.Paths.Count}");
|
||||||
selectedItem.Enabled = false;
|
selectedItem.Enabled = false;
|
||||||
|
|
||||||
// Refresh path main menu
|
MenuManager.BuildMenus();
|
||||||
PathMainMenu.BuildPathMenu();
|
PathMainMenu.Menu.Visible = true;
|
||||||
PathMainMenu.Menu.RefreshIndex();
|
|
||||||
Menu.Visible = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue