Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.71 KB | None | 0 0
  1. if (Properities.Beatmap.CurrentIndex - (Properities.Mouse.ScrollState / 120) * -1 <= Properities.BeatmapCount.BeatmapDictionariesAvailable && Properities.Beatmap.CurrentIndex - (Properities.Mouse.ScrollState / 120) * -1 >= 1)
  2.             {
  3.                 FOCUS = Properities.Beatmap.CurrentIndex - (Properities.Mouse.ScrollState / 120) * -1;
  4.             }
  5.  
  6.             zaehler = 0;
  7.  
  8.             foreach (Properities.Beatmap bm in Properities.Beatmap.dictionaries)
  9.             {
  10.                 if (bm.DictionaryId >= FOCUS && zaehler < MAX_BUTTONS)
  11.                 {
  12.                     Properities.TextureRectangles.songbutton[bm.DictionaryId] = new Rectangle(400, 90 + (94*zaehler), 712, 114);
  13.                     spriteBatch.Draw(Textures.InitializeTextures.songbutton, Properities.TextureRectangles.songbutton[bm.DictionaryId], Color.White);
  14.                     zaehler = zaehler + 1;
  15.  
  16.                     if (bm.DictionaryId == Properities.Beatmap.CurrentIndex)
  17.                     {
  18.                         foreach (Properities.Beatmap bms in Properities.Beatmap.beatmaps)
  19.                         {
  20.                             if (bms.DictionaryId == bm.DictionaryId && zaehler < MAX_BUTTONS)
  21.                             {
  22.                                 Properities.TextureRectangles.songbuttonsub[bms.BeatmapId] = new Rectangle(420, 90 + (94 * zaehler), 712, 114);
  23.                                 spriteBatch.Draw(Textures.InitializeTextures.songbuttonsub, Properities.TextureRectangles.songbuttonsub[bms.BeatmapId], Color.White);
  24.                                 zaehler = zaehler + 1;
  25.                             }
  26.                         }
  27.                     }
  28.                 }
  29.                
  30.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement