Exemplo n.º 1
0
        /// <summary>Draws the overlay.</summary>
        /// <param name="t">The total game time, in seconds.</param>
        /// <param name="dt">The game time, in seconds, since the last call to this
        ///                  method.</param>
        public override void Draw(float t, float dt)
        {
            base.Draw(t, dt);

            // Draw boxes before overlay text.
            DrawAABBs();

            var x = 16.0f;
            var y = 16.0f;

            mSB.Begin();

            foreach (var fn in mStrFns)
            {
                GfxUtil.DrawText(mSB, x, y, fn(t, dt), GfxUtil.DefFont, Color.Magenta);
                y += 24.0f;
            }

            mSB.End();
        }
Exemplo n.º 2
0
 public override void Draw(SpriteBatch sb, int x, int y)
 {
     GfxUtil.DrawText(sb, x, y, Str(), mFont, Color);
 }