コード例 #1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);
            sb.Begin();
            if (loading)
            {
                sb.DrawString(theme.TestFont, "loading...", Vector2.Zero, Color.White);
            }
            else
            {
                sR.Draw(sb, new Rectangle
                {
                    X      = 0,
                    Y      = 0,
                    Width  = GraphicsDevice.Viewport.Width,
                    Height = GraphicsDevice.Viewport.Height,
                });
                sb.DrawString(theme.TestFont, "" + Math.Round(ts.Time / ts.PPQ / 4), Vector2.Zero, Color.White);


                ctr.Draw(sb, new Vector2
                {
                    X = 100,
                    Y = 100,
                });
            }
            sb.End();

            base.Draw(gameTime);
        }
コード例 #2
0
ファイル: PlayScreen.cs プロジェクト: sunny-lan/Uso
        public void Draw(GameLayers output, Rectangle area)
        {
            var pos = area.Location.ToVector2();
            var sb  = output.MainLayer;

            sR.Draw(sb, area);
            sb.DrawString(globals.Theme.TestFont, "" + Math.Round(ts.Time / ts.PPQ / 4), pos, Color.White);


            ctr.Draw(sb, pos + new Vector2
            {
                X = 100,
                Y = 100,
            });
        }