4d225c65f2
- Barotrauma's projects are in the Barotrauma directory - All libraries are in the Libraries directory - MonoGame is now managed by NuGet, rather than referenced from the installed files (TODO: consider using PCL for easier cross-platform development?) - NuGet libraries are not included in the repo, as getting the latest versions automatically should be preferred - Removed Content/effects.mgfx as it didn't seem to be used anywhere - Removed some references to Subsurface directory - Renamed Launcher2 to Launcher
32 lines
930 B
C#
32 lines
930 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace Barotrauma
|
|
{
|
|
partial class AITarget
|
|
{
|
|
public static bool ShowAITargets;
|
|
|
|
public void Draw(SpriteBatch spriteBatch)
|
|
{
|
|
if (!ShowAITargets) return;
|
|
|
|
var rangeSprite = GUI.SubmarineIcon;
|
|
|
|
if (soundRange > 0.0f)
|
|
rangeSprite.Draw(spriteBatch,
|
|
new Vector2(WorldPosition.X, -WorldPosition.Y),
|
|
Color.Cyan * 0.1f, rangeSprite.Origin,
|
|
0.0f, soundRange / rangeSprite.size.X);
|
|
|
|
if (sightRange > 0.0f)
|
|
rangeSprite.Draw(spriteBatch,
|
|
new Vector2(WorldPosition.X, -WorldPosition.Y),
|
|
Color.Orange * 0.1f, rangeSprite.Origin,
|
|
0.0f, sightRange / rangeSprite.size.X);
|
|
}
|
|
}
|
|
}
|