Ejemplo n.º 1
0
        /// <summary>When a menu is open (<see cref="Game1.activeClickableMenu"/> isn't null), raised after that menu is drawn to the sprite batch but before it's rendered to the screen.</summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event arguments.</param>
        private void onRenderedActiveMenu(object sender, RenderedActiveMenuEventArgs e)
        {
            if (activeMenu == null)
            {
                return;
            }

            e.SpriteBatch.Draw(hsl, new Vector2((Game1.viewport.Width - hsl.Width) / 2, 32), Color.White);
            activeMenu.drawMouse(e.SpriteBatch);
        }