public void Draw() { SpriteDrawer.DrawUI(background, this.getPos() - view.viewSize / 2, new Vector2(Width, Height), Color.White, Vector2.Zero, 0); foreach (UIElement child in children) { child.Draw(); } }