Esempio n. 1
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            tempRect.X = (int)PositionOnScreenX;
            tempRect.Y = (int)PositionOnScreenY;

            tempRect.Width  = Width;
            tempRect.Height = Height;

            if (Visibled)
            {
                if (BackgroundImage != null)
                {
                    spriteBatch.Draw(BackgroundImage, tempRect, Color.White);
                }

                ControlManager.DrawControls(gameTime, spriteBatch);
            }
        }