优化,改bug

Signed-off-by: TRADER_FOER <lhf190@outlook.com>
This commit is contained in:
2026-07-09 23:25:02 +08:00
parent 879f1e49b8
commit fdc20cd66f
54 changed files with 288754 additions and 4266 deletions

View File

@@ -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,

View File

@@ -205,6 +205,7 @@ namespace Ichni.RhythmGame
{
if (nowEffectState == EffectState.Before)
{
PostProcessingManager.EnsureActiveCameraPostProcessing();
PreExecute();
}
@@ -294,4 +295,4 @@ namespace Ichni.RhythmGame
}
#endregion
}
}
}

View File

@@ -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