mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-12 08:00:30 +01:00
Updated public methods and properties to internal, changed Game.LogTrivial calls to Logger.Log
This commit is contained in:
parent
c141396d64
commit
514211dd96
1 changed files with 5 additions and 6 deletions
|
|
@ -7,18 +7,17 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
class EditPathMenu
|
class EditPathMenu
|
||||||
{
|
{
|
||||||
public static UIMenu editPathMenu { get; private set; }
|
internal static UIMenu editPathMenu = new UIMenu("Scene Manager", "~o~Edit Path");
|
||||||
private static UIMenuItem editPathWaypoints, deletePath;
|
private static UIMenuItem editPathWaypoints, deletePath;
|
||||||
public static UIMenuCheckboxItem disablePath;
|
internal static UIMenuCheckboxItem disablePath;
|
||||||
|
|
||||||
internal static void InstantiateMenu()
|
internal static void InstantiateMenu()
|
||||||
{
|
{
|
||||||
editPathMenu = new UIMenu("Scene Manager", "~o~Edit Path");
|
|
||||||
editPathMenu.ParentMenu = PathMainMenu.pathMainMenu;
|
editPathMenu.ParentMenu = PathMainMenu.pathMainMenu;
|
||||||
MenuManager.menuPool.Add(editPathMenu);
|
MenuManager.menuPool.Add(editPathMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void BuildEditPathMenu()
|
internal static void BuildEditPathMenu()
|
||||||
{
|
{
|
||||||
editPathMenu.AddItem(disablePath = new UIMenuCheckboxItem("Disable Path", false));
|
editPathMenu.AddItem(disablePath = new UIMenuCheckboxItem("Disable Path", false));
|
||||||
editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
editPathMenu.AddItem(editPathWaypoints = new UIMenuItem("Edit Waypoints"));
|
||||||
|
|
@ -54,12 +53,12 @@ namespace SceneManager
|
||||||
if (disablePath.Checked)
|
if (disablePath.Checked)
|
||||||
{
|
{
|
||||||
currentPath.DisablePath();
|
currentPath.DisablePath();
|
||||||
Game.LogTrivial($"Path {currentPath.Number} disabled.");
|
Logger.Log($"Path {currentPath.Number} disabled.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
currentPath.EnablePath();
|
currentPath.EnablePath();
|
||||||
Game.LogTrivial($"Path {currentPath.Number} enabled.");
|
Logger.Log($"Path {currentPath.Number} enabled.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue