Esempio n. 1
0
        internal void Draw()
        {
            if (GameBase.Tournament)
            {
                return;
            }

            if (Player.Playing || (mustHide && background.Position == background.InitialPosition))
            {
                return;
            }

            float height = GameBase.Mode == OsuModes.OnlineSelection ? GameBase.WindowManager.HeightScaled : HEIGHT - 20;

            background.VectorScale.Y = height + 20;

            spriteManager.HandleOverlayInput = RespondingBeatmap != null && ChatEngine.Visibility != ChatVisibility.Full;

            spriteManager.Draw();

            downloadListPanel.SetDisplayRectangle(new RectangleF((int)Math.Ceiling(background.CurrentPositionActual.X + 1),
                                                                 YPOS + 20, WIDTH,
                                                                 (int)height));

            //Need to set alpha etc. here so hover sprites are released correctly.
            downloadListPanel.ContentSpriteManager.HandleOverlayInput = Visible && !spriteManager.HandleOverlayInput;
            downloadListPanel.ContentSpriteManager.Alpha = RespondingBeatmap == null ? 1 : 0;

            downloadListPanel.Draw();
        }