public override void Draw(SpriteBatch spriteBatch)
 {
     if (!pHideBar)
     {
         base.Draw(spriteBatch);
     }
     pAssociatedPane.Draw(spriteBatch);
 }
Ejemplo n.º 2
0
        public override void Draw(SpriteBatch batch)
        {
            Base.Draw(batch);

            playrandom.Draw(batch);
            repeat.Draw(batch);
            stop.Draw(batch);
            pause.Draw(batch);
            play.Draw(batch);

            string np = string.Format("Now playing: {0}", NowPlaying ?? "nothing");

            nowPlaying.text     = np;
            nowPlaying.position = new Vector2(1366 - (nowPlaying.useFont.MeasureString(np).X + 15), 768 - 50);
            nowPlaying.Draw(batch);

            if (MediaPlayer.State != MediaState.Stopped)
            {
                download.np    = NowPlaying;
                download.music = music;
                download.rect  = new Rectangle(1366 - ((int)nowPlaying.useFont.MeasureString(np).X + 30 + 180), 768 - 65, 180, 50);
                download.Draw(batch);

                if (MouseTouching.RectWithIn(download.rect))
                {
                    message.Draw(batch);
                }
            }

            base.Draw(batch);
        }
Ejemplo n.º 3
0
        public override void Draw(SpriteBatch batch)
        {
            pane.Draw(batch);
            speaker.Draw(batch);
            message.Draw(batch);

            string continueText = "Space to continue...";

            batch.DrawString(speaker.useFont, continueText, new Vector2(1366 - speaker.useFont.MeasureString(continueText).X - 10, 768 - speaker.useFont.MeasureString(continueText).Y - 20), Color.Gray * mainAlpha);

            base.Draw(batch);
        }
Ejemplo n.º 4
0
        public override void Draw(SpriteBatch batch)
        {
            if (visible)
            {
                batch.Draw(title, new Vector2(0, 0), Color.White);

                pane.Draw(batch);

                play.Draw(batch);
                music.Draw(batch);
                settings.Draw(batch);
                footer.Draw(batch);

                leaveConfirmation.Draw(batch);
            }

            base.Draw(batch);
        }