@@ -58,6 +58,19 @@ namespace Ichni.RhythmGame
|
||||
public Action PasteAction = null;
|
||||
private void PasteTrackList()
|
||||
{
|
||||
if (parentElement is not ElementFolder folder)
|
||||
{
|
||||
LogWindow.Log("Paste Track List failed: parent element is not an ElementFolder.", Color.yellow);
|
||||
return;
|
||||
}
|
||||
|
||||
List<Track> trackList = folder.trackList;
|
||||
if (trackList == null || trackList.Count == 0)
|
||||
{
|
||||
LogWindow.Log("Paste Track List failed: no tracks found in parent folder.", Color.yellow);
|
||||
return;
|
||||
}
|
||||
|
||||
if (PasteAction == null)
|
||||
{
|
||||
PasteAction = () =>
|
||||
@@ -65,12 +78,19 @@ namespace Ichni.RhythmGame
|
||||
PasteTrackList();
|
||||
};
|
||||
}
|
||||
List<Track> trackList = (parentElement as ElementFolder).trackList;
|
||||
trackSwitch = new FlexibleInt();
|
||||
trackPercent = new FlexibleFloat();
|
||||
foreach (Track track in trackList)
|
||||
{
|
||||
if (track == null) continue;
|
||||
|
||||
TrackTimeSubmoduleMovable trackTimeSubmodule = track.trackTimeSubmodule as TrackTimeSubmoduleMovable;
|
||||
if (trackTimeSubmodule == null)
|
||||
{
|
||||
LogWindow.Log("Paste Track List skipped a track without movable time submodule.", Color.yellow);
|
||||
continue;
|
||||
}
|
||||
|
||||
trackSwitch.animations.Add(new AnimatedInt(trackTimeSubmodule.trackStartTime,
|
||||
trackList.IndexOf(track)));
|
||||
trackPercent.animations.Add(new AnimatedFloat(trackTimeSubmodule.trackStartTime,
|
||||
|
||||
@@ -205,6 +205,7 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
if (nowEffectState == EffectState.Before)
|
||||
{
|
||||
PostProcessingManager.EnsureActiveCameraPostProcessing();
|
||||
PreExecute();
|
||||
}
|
||||
|
||||
@@ -294,4 +295,4 @@ namespace Ichni.RhythmGame
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using SLSUtilities.Rendering.PostProcessing;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.Universal;
|
||||
|
||||
@@ -10,7 +11,7 @@ namespace Ichni.RhythmGame
|
||||
public float peak;
|
||||
public AnimationCurve intensityCurve;
|
||||
|
||||
private Bloom _bloom;
|
||||
private AnimeBloom _bloom;
|
||||
#endregion
|
||||
|
||||
#region [生成与初始化] Generation & Initialization
|
||||
@@ -36,6 +37,7 @@ namespace Ichni.RhythmGame
|
||||
if (_bloom == null && PostProcessingManager.GlobalVolume != null)
|
||||
{
|
||||
PostProcessingManager.GlobalVolume.profile.TryGet(out _bloom);
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user