private void LevelLoaded()
 {
     noteAppearance.UpdateColor(redNote.color, blueNote.color);
     foreach (BeatmapObjectContainer con in BeatmapObjectContainerCollection.GetCollectionForType(BeatmapObject.Type.NOTE).LoadedContainers)
     {
         BeatmapNote note = (con.objectData as BeatmapNote);
         if (note._type != BeatmapNote.NOTE_TYPE_BOMB)
         {
             Color color = note._type == BeatmapNote.NOTE_TYPE_A ? redNote.color : blueNote.color;
             if (note._customData?.HasKey("_color") ?? false)
             {
                 color = note._customData["_color"];
             }
             (con as BeatmapNoteContainer).SetColor(color);
         }
     }
     foreach (BeatmapObjectContainer con in events.LoadedContainers)
     {
         eventAppearance.SetEventAppearance(con as BeatmapEventContainer, true, platform);
     }
     foreach (BeatmapObjectContainer con in obstacles.LoadedContainers)
     {
         obstacleAppearance.SetObstacleAppearance(con as BeatmapObstacleContainer, platform);
     }
 }
 public void UpdateRedNote()
 {
     BeatSaberSongContainer.Instance.difficultyData.colorLeft = redNote.color = picker.CurrentColor.WithAlpha(1);
     noteAppearance.UpdateColor(redNote.color, blueNote.color);
     BeatmapObjectContainerCollection.GetCollectionForType(BeatmapObject.Type.NOTE).RefreshPool(true);
     CustomColorsUpdatedEvent?.Invoke();
 }
Esempio n. 3
0
 public void UpdateColor(Color red, Color blue)
 {
     noteAppearanceSO.UpdateColor(red, blue);
 }
 public void UpdateRedNote()
 {
     redNote.color = picker.CurrentColor;
     BeatSaberSongContainer.Instance.difficultyData.colorLeft = picker.CurrentColor;
     noteAppearance.UpdateColor(picker.CurrentColor, BeatSaberSongContainer.Instance.difficultyData.colorRight);
 }