Track LocalMods as part of monolith
This commit is contained in:
36
LocalMods/More Level Content/CSharp/Client/UI/ClientDebugDraw.cs
Executable file
36
LocalMods/More Level Content/CSharp/Client/UI/ClientDebugDraw.cs
Executable file
@@ -0,0 +1,36 @@
|
||||
using Barotrauma;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using MoreLevelContent.Shared.Generation;
|
||||
using Microsoft.Xna.Framework;
|
||||
using MoreLevelContent.Shared.Utils;
|
||||
using Barotrauma.Items.Components;
|
||||
using MoreLevelContent.Shared;
|
||||
using System;
|
||||
|
||||
public static class ClientDebugDraw
|
||||
{
|
||||
internal static void Draw(SpriteBatch spriteBatch, Camera cam)
|
||||
{
|
||||
if (Level.Loaded != null)
|
||||
{
|
||||
// spriteBatch.DrawCircle(new Vector2(Level.Loaded.StartPosition.X, -Level.Loaded.StartPosition.Y), CaveGenerationDirector.MIN_DIST_FROM_START, 16, Color.Red, thickness: 100);
|
||||
// spriteBatch.DrawLine(new Vector2(0, -Level.Loaded.StartPosition.Y + (Sonar.DefaultSonarRange / 2)), new Vector2(int.MaxValue, -Level.Loaded.StartPosition.Y + (Sonar.DefaultSonarRange / 2)), Color.Yellow, thickness: 2 / Screen.Selected.Cam.Zoom * GUI.Scale);
|
||||
}
|
||||
|
||||
foreach (var item in CaveGenerationDirector.Instance._InitialCaveCheckDebug)
|
||||
{
|
||||
GUI.DrawString(spriteBatch, new Vector2(item.Cell.Center.X, -item.Cell.Center.Y), "Cell", Color.Azure);
|
||||
}
|
||||
|
||||
foreach (var (from, to) in MissionGenerationDirector.DebugPoints)
|
||||
{
|
||||
var from1 = new Vector2(from.X, -from.Y);
|
||||
var to1 = new Vector2(to.X, -to.Y);
|
||||
spriteBatch.DrawCircle(from1, 20, 8, Color.Aqua);
|
||||
spriteBatch.DrawCircle(to1, 10, 8, Color.Yellow);
|
||||
GUI.DrawLine(spriteBatch, from1, to1, Color.Red, width: 5);
|
||||
}
|
||||
|
||||
if (CaveGenerationDirector.Instance.ActiveThalaCave != null) CaveGenerationDirector.Instance.ActiveThalaCave.DebugDraw(spriteBatch, cam);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user