コード例 #1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            spriteBatch.Begin();

            textBox.Draw(spriteBatch, gameTime);
            item.Draw(spriteBatch);

            i = 0;
            foreach (var s in info)
            {
                spriteBatch.DrawString(consoleFont, s, new Vector2(5, 0 + consoleFont.MeasureString("W").Y *i), Color.White);
                i++;
            }

            spriteBatch.End();

            base.Draw(gameTime);
        }