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

Removed debugGraphics parameter from LoopToDrawDebugGraphics method.

This commit is contained in:
Rich Dunne 2020-09-05 14:07:54 -06:00
parent 022097211c
commit d177b624cd

View file

@ -1,22 +1,20 @@
using Rage; using Rage;
using RAGENativeUI.Elements;
using System.Drawing; using System.Drawing;
namespace SceneManager namespace SceneManager
{ {
class DebugGraphics class DebugGraphics
{ {
public static void LoopToDrawDebugGraphics(UIMenuCheckboxItem debugGraphics, Path path) public static void LoopToDrawDebugGraphics(Path path)
{ {
GameFiber.StartNew(() => GameFiber.StartNew(() =>
{ {
while (debugGraphics.Checked) while (SettingsMenu.debugGraphics.Checked)
{ {
if (MenuManager.menuPool.IsAnyMenuOpen() && path != null) if (MenuManager.menuPool.IsAnyMenuOpen() && path != null)
{ {
for (int i = 0; i < path.Waypoints.Count; i++) for (int i = 0; i < path.Waypoints.Count; i++)
{ {
//Draw3DMarkersAtWaypoints(path, i);
path.Waypoints[i].DrawWaypointMarker(); path.Waypoints[i].DrawWaypointMarker();
if (i != path.Waypoints.Count - 1) if (i != path.Waypoints.Count - 1)