LADXHD/InGame/Interface/InterfaceCanvas.cs

18 lines
571 B
C#
Raw Normal View History

2023-12-14 22:21:22 +00:00
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ProjectZ.InGame.Interface
{
public class InterfaceCanvas : InterfaceElement
{
public InterfaceElement InsideElement;
public override void Draw(SpriteBatch spriteBatch, Vector2 drawPosition, float scale, float transparency)
{
base.Draw(spriteBatch, drawPosition, scale, transparency);
// draw the embedded element
InsideElement?.Draw(spriteBatch, drawPosition, scale, transparency);
}
}
}