コード例 #1
0
        /// <inheritdoc />
        /// <summary>
        ///     This is called when the game should draw itself.
        /// </summary>
        protected override void Draw(GameTime gameTime)
        {
            if (!IsReadyToUpdate)
            {
                return;
            }

            for (var i = ScheduledRenderTargetDraws.Count - 1; i >= 0; i--)
            {
                ScheduledRenderTargetDraws[i]?.Invoke();
                ScheduledRenderTargetDraws.Remove(ScheduledRenderTargetDraws[i]);
            }

            base.Draw(gameTime);

            // Draw dialogs
            DialogManager.Draw(gameTime);

            NotificationManager.Draw(gameTime);

            // Draw the global container last.
            GlobalUserInterface.Draw(gameTime);

            Transitioner.Draw(gameTime);
        }
コード例 #2
0
ファイル: QuaverGame.cs プロジェクト: harish-kumar13/Quaver
        /// <inheritdoc />
        /// <summary>
        ///     This is called when the game should draw itself.
        /// </summary>
        protected override void Draw(GameTime gameTime)
        {
            if (!IsReadyToUpdate)
            {
                return;
            }

            base.Draw(gameTime);

            // Draw dialogs
            DialogManager.Draw(gameTime);

            NotificationManager.Draw(gameTime);

            // Draw the global container last.
            GlobalUserInterface.Draw(gameTime);

            Transitioner.Draw(gameTime);
        }