This commit is contained in:
SoulliesOfficial
2025-09-14 14:53:45 -04:00
parent 64c84ac685
commit 8f9e84a535
68 changed files with 12674 additions and 470 deletions

View File

@@ -38,7 +38,15 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
foreach (var renderer in noteRenderers)
{
renderer.material.SetFloat("_MainAlpha", 1f);
renderer.materials.For(m => m.SetFloat("_MainAlpha", 1f));
}
}
public override void PreExecute()
{
if (noteVisual is DTMNoteVisualHold)
{
noteRenderers[0].materials[1].SetFloat("_GlowIntensity", 0.25f);
}
}
@@ -49,7 +57,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
foreach (var renderer in noteRenderers)
{
renderer.material.SetFloat("_MainAlpha", alpha);
renderer.materials.For(m => m.SetFloat("_MainAlpha", alpha));
}
}
@@ -58,7 +66,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
noteVisual.noteMain.SetActive(false);
foreach (var renderer in noteRenderers)
{
renderer.material.SetFloat("_MainAlpha", 0f);
renderer.materials.For(m => m.SetFloat("_MainAlpha", 1f));
}
}

View File

@@ -9,8 +9,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
{
public partial class DTMNoteVisual : NoteVisualBase
{
public List<Material> normalMaterialList;
public List<Material> highlightMaterialList;
public List<List<Material>> normalMaterialList;
public List<List<Material>> highlightMaterialList;
public new static DTMNoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isHighlighted)
@@ -27,7 +27,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
if (note == null) throw new System.Exception("NoteVisual只能生成在Note下。");
this.note = note;
note.noteVisual = this;
if (note is Flick flick)
{
flick.availableFlickDirections = new List<Vector2>() { Vector2.left, Vector2.right };
@@ -76,14 +76,20 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
{
for (int i = 0; i < partRendererList.Count; i++)
{
partRendererList[i].material = normalMaterialList[i];
for (int j = 0; j < partRendererList[i].materials.Length; j++)
{
partRendererList[i].materials[j] = normalMaterialList[i][j];
}
}
}
else
{
for (int i = 0; i < partRendererList.Count; i++)
{
partRendererList[i].material = highlightMaterialList[i];
for (int j = 0; j < partRendererList[i].materials.Length; j++)
{
partRendererList[i].materials[j] = highlightMaterialList[i][j];
}
}
}
}

View File

@@ -59,7 +59,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
Renderer rend = part.GetComponent<Renderer>();
if (rend != null)
{
rend.material.SetFloat("_MainAlpha", 1f);
rend.materials[0].SetFloat("_MainAlpha", 1f);
rend.materials[1].SetFloat("_MainAlpha", 1f);
note.track.trackPathSubmodule.path.RebuildImmediate();
}
}