Esempio n. 1
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        /// <param name="gameTime"></param>
        public override void Draw(GameTime gameTime)
        {
            var color = Color.CornflowerBlue;

            if (TestImGuiMenu.Lightshow)
            {
                color    = new Color(RNG.Next(255), RNG.Next(255), RNG.Next(255));
                Box.Tint = new Color(RNG.Next(255), RNG.Next(255), RNG.Next(255));
            }
            else
            {
                Box.Tint = Color.Red;
            }

            GameBase.Game.GraphicsDevice.Clear(color);
            Container?.Draw(gameTime);

            GameBase.Game.SpriteBatch.End();
            TestImGuiMenu.Draw(gameTime);
        }
Esempio n. 2
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        /// <param name="gameTime"></param>
        public override void Draw(GameTime gameTime)
        {
            var color = Color.CornflowerBlue;

            /* if (TestImGuiMenu.Lightshow)
             * {
             *   color = new Color(RNG.Next(255), RNG.Next(255), RNG.Next(255));
             *   Box.Tint = new Color(RNG.Next(255), RNG.Next(255), RNG.Next(255));
             * }
             * else
             * {
             *   Box.Tint = Color.Crimson;
             * }*/

            GameBase.Game.GraphicsDevice.Clear(color);
            Container?.Draw(gameTime);

            GameBase.Game.SpriteBatch.End();
            TestImGuiMenu.Draw(gameTime);
        }