mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 15:40:29 +01:00
Refactored due to changing when a path is considered "being created"
This commit is contained in:
parent
cfd99f7f9a
commit
82d1e5293c
1 changed files with 15 additions and 16 deletions
|
|
@ -173,7 +173,6 @@ namespace SceneManager
|
||||||
{
|
{
|
||||||
if (selectedItem == createNewPath)
|
if (selectedItem == createNewPath)
|
||||||
{
|
{
|
||||||
createNewPath.Text = "Continue Creating Current Path";
|
|
||||||
pathMainMenu.Visible = false;
|
pathMainMenu.Visible = false;
|
||||||
PathCreationMenu.pathCreationMenu.Visible = true;
|
PathCreationMenu.pathCreationMenu.Visible = true;
|
||||||
|
|
||||||
|
|
@ -183,24 +182,24 @@ namespace SceneManager
|
||||||
if (paths.ElementAtOrDefault(i) != null && paths[i].PathFinished == false)
|
if (paths.ElementAtOrDefault(i) != null && paths[i].PathFinished == false)
|
||||||
{
|
{
|
||||||
//Game.LogTrivial($"pathFinished: {paths[i].PathFinished}");
|
//Game.LogTrivial($"pathFinished: {paths[i].PathFinished}");
|
||||||
Game.LogTrivial($"Resuming path {i + 1}");
|
Game.LogTrivial($"Resuming path {paths[i].PathNum}");
|
||||||
Game.DisplayNotification($"~o~Scene Manager\n~y~[Creating]~w~ Resuming path {i + 1}");
|
Game.DisplayNotification($"~o~Scene Manager\n~y~[Creating]~w~ Resuming path {paths[i].PathNum}");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (paths.ElementAtOrDefault(i) == null)
|
//else if (paths.ElementAtOrDefault(i) == null)
|
||||||
{
|
//{
|
||||||
// Do we only want to do this once the first waypoint is added?
|
// Do we only want to do this once the first waypoint is added ?
|
||||||
PathCreationMenu.AddNewPathToPathsCollection(paths, i);
|
// PathCreationMenu.AddNewPathToPathsCollection(paths, i);
|
||||||
|
|
||||||
if (SettingsMenu.debugGraphics.Checked)
|
// if (SettingsMenu.debugGraphics.Checked)
|
||||||
{
|
// {
|
||||||
GameFiber.StartNew(() =>
|
// GameFiber.StartNew(() =>
|
||||||
{
|
// {
|
||||||
DebugGraphics.LoopToDrawDebugGraphics(SettingsMenu.debugGraphics, paths[i]);
|
// DebugGraphics.LoopToDrawDebugGraphics(SettingsMenu.debugGraphics, paths[i]);
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
break;
|
// break;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue