示例#1
0
        public override void Draw(GameTime time)
        {
            base.Draw(time);

            spriteBatch.Begin();

            // zeichne den Hintergrund
            spriteBatch.DrawColoredRectangle(BackgroundColor, Bounds);

            // lade die Schrift
            SpriteFont font = Design.MenuFont(Screen);

            // zeichne den Titel des Dialogs
            spriteBatch.DrawColoredRectangle(TitleBackgroundColor(), TitleBounds);
            spriteBatch.DrawStringInRectangle(font, Title.Localize(), TitleForegroundColor(), TitleBounds, AlignX, AlignY);

            spriteBatch.End();
        }