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

Updated reference names based on refactorings. Added break condition for Draw3DWaypointOnPlayer if player leaves the pathCreationMenu.

This commit is contained in:
Rich Dunne 2020-09-06 14:28:06 -06:00
parent 0d6f5ae51a
commit 2f6956be20

View file

@ -9,7 +9,7 @@ namespace SceneManager
{
GameFiber.StartNew(() =>
{
while (SettingsMenu.debugGraphics.Checked)
while (SettingsMenu.threeDWaypoints.Checked)
{
if (MenuManager.menuPool.IsAnyMenuOpen() && path != null)
{
@ -44,7 +44,7 @@ namespace SceneManager
{
GameFiber.StartNew(() =>
{
while (SettingsMenu.debugGraphics.Checked)
while (SettingsMenu.threeDWaypoints.Checked)
{
if (PathCreationMenu.pathCreationMenu.Visible)
{
@ -62,6 +62,10 @@ namespace SceneManager
Rage.Native.NativeFunction.Natives.DRAW_MARKER(1, Game.LocalPlayer.Character.Position.X, Game.LocalPlayer.Character.Position.Y, Game.LocalPlayer.Character.Position.Z - 1, 0, 0, 0, 0, 0, 0, 1f, 1f, 1f, 255, 65, 65, 80, false, false, 2, false, 0, 0, false);
}
}
else
{
break;
}
GameFiber.Yield();
}
});