19 lines
511 B
C#
19 lines
511 B
C#
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace Barotrauma.Items.Components
|
|
{
|
|
partial class Controller : ItemComponent
|
|
{
|
|
public override void DrawHUD(SpriteBatch spriteBatch, Character character)
|
|
{
|
|
if (focusTarget != null && character.ViewTarget == focusTarget)
|
|
{
|
|
foreach (ItemComponent ic in focusTarget.Components)
|
|
{
|
|
ic.DrawHUD(spriteBatch, character);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|