From 7fc1a4f8e6126e8bca06cc75fc95c0697f6fc6a0 Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Fri, 7 May 2021 04:04:47 -0600 Subject: [PATCH] Updated namespace references --- SceneManager/Menus/ImportPathMenu.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/SceneManager/Menus/ImportPathMenu.cs b/SceneManager/Menus/ImportPathMenu.cs index f4f3505..17f5bb9 100644 --- a/SceneManager/Menus/ImportPathMenu.cs +++ b/SceneManager/Menus/ImportPathMenu.cs @@ -1,11 +1,12 @@ using RAGENativeUI; using RAGENativeUI.Elements; using System.Drawing; -using SceneManager.Objects; using SceneManager.Utils; using System.Collections.Generic; using System.Linq; using Rage; +using SceneManager.Managers; +using SceneManager.Paths; 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 Path importedPath = PathManager.ImportPath(Settings.ImportedPaths.FirstOrDefault(x => x.Name == selectedItem.Text)); 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; - // Refresh path main menu - PathMainMenu.BuildPathMenu(); - PathMainMenu.Menu.RefreshIndex(); - Menu.Visible = true; + MenuManager.BuildMenus(); + PathMainMenu.Menu.Visible = true; } } }