Ejemplo n.º 1
0
 public void DrawSelf(HackNodeGameBoardMedia drawing, SpriteBatch spriteBatch, GraphicsDevice GraphicsDevice, HackGameAgent_Player player)
 {
     if (newlyactive)
     {
         newlyactive = false;
         active = true;
         currentTickerPos = GraphicsDevice.Viewport.Width - tickerCharWidth;
         stringDrawLength = drawing.Ticker_Font.MeasureString(currentTicker).X;
         if (!overriding && newActiveTime <= 0)
         {
             drawing.StartMessageSound();
         }
     }
     if (active)
     {
         //Draw the ticker
         spriteBatch.DrawString(drawing.Ticker_Font, currentTicker, new Vector2(currentTickerPos, drawLocationY), Color.Red);
     }
 }