コード例 #1
0
        /// <summary>
        /// Drawing
        /// </summary>
        public override void Draw()
        {
            // Clears the background
            Display.ClearBuffers();

            Batch.Begin();


            // Background
            Batch.DrawTile(Tileset, 1, Point.Empty);


            // Draw buttons
            for (int id = 0; id < Buttons.Count; id++)
            {
                ScreenButton button = Buttons[id];


                Batch.DrawString(Font,
                                 new Vector2(button.Rectangle.Location.X, button.Rectangle.Location.Y),
                                 id == MenuID ? Color.FromArgb(255, 85, 85) : Color.White,
                                 button.Text);
            }

            if (LoadGame != null)
            {
                LoadGame.Draw(Batch);
            }


            Batch.End();
        }