Railgun HUD (shows supercapacitor charge & how many shells there are left)

This commit is contained in:
Joonas Rikkonen
2017-11-27 19:34:57 +02:00
parent f4f58622e1
commit 51fe7df481
10 changed files with 189 additions and 32 deletions
@@ -0,0 +1,19 @@
using Microsoft.Xna.Framework.Graphics;
namespace Barotrauma.Items.Components
{
partial class Controller : ItemComponent
{
public override void DrawHUD(SpriteBatch spriteBatch, Character character)
{
var focusTarget = GetFocusTarget();
if (character.ViewTarget == focusTarget)
{
foreach (ItemComponent ic in focusTarget.components)
{
ic.DrawHUD(spriteBatch, character);
}
}
}
}
}