This commit is contained in:
SoulliesOfficial
2025-09-19 23:39:23 -04:00
parent f612d5bcd4
commit a9bc898e4c
130 changed files with 227554 additions and 24284 deletions

View File

@@ -22,6 +22,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
public override void Recover()
{
noteVisual.noteMain.SetActive(true);
if (note is Hold && noteVisual.isHighlighted)
{
noteVisual.extraPartList[0].gameObject.SetActive(true);
}
}
public override void Adjust()
@@ -29,6 +33,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[2], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
effectParticle.Play();
if (note is Hold && noteVisual.isHighlighted)
{
noteVisual.extraPartList[0].gameObject.SetActive(false);
}
noteVisual.noteMain.SetActive(false);
LeanPool.Despawn(effectParticle.gameObject, 1);
}

View File

@@ -21,6 +21,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
public override void Recover()
{
noteVisual.noteMain.SetActive(true);
if (note is Hold && noteVisual.isHighlighted)
{
noteVisual.extraPartList[0].gameObject.SetActive(true);
}
}
public override void Adjust()
@@ -28,6 +33,12 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[1], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
effectParticle.Play();
if (note is Hold && noteVisual.isHighlighted)
{
noteVisual.extraPartList[0].gameObject.SetActive(false);
}
noteVisual.noteMain.SetActive(false);
LeanPool.Despawn(effectParticle.gameObject, 1);
}

View File

@@ -17,19 +17,35 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
this.noteVisual = noteVisual;
this.effectTime = effectTime;
this.noteRenderers = new List<Renderer>();
foreach (Renderer renderer in noteVisual.notePartList.Select(part => part.GetComponent<Renderer>()))
foreach (GameObject part in noteVisual.notePartList)
{
noteRenderers.Add(renderer);
Renderer rend = part.GetComponent<Renderer>();
if(rend != null)
{
noteRenderers.Add(rend);
}
}
}
public override void Recover()
{
noteVisual.noteMain.SetActive(true);
noteRenderers[0].materials[1].SetFloat("_GlowIntensity", 4f);
foreach (var renderer in noteRenderers)
{
renderer.material.SetFloat("_MainAlpha", 1f);
foreach (Material m in renderer.materials)
{
m.SetFloat("_MainAlpha", 1);
}
}
}
public override void PreExecute()
{
if (noteVisual is DTMNoteVisualHold)
{
noteRenderers[0].materials[1].SetFloat("_GlowIntensity", 0.25f);
}
}
@@ -39,7 +55,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
float alpha = (1 - e) / 4f;
foreach (var renderer in noteRenderers)
{
renderer.material.SetFloat("_MainAlpha", alpha);
foreach (Material m in renderer.materials)
{
m.SetFloat("_MainAlpha", alpha);
}
}
}
@@ -48,7 +67,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
noteVisual.noteMain.SetActive(false);
foreach (var renderer in noteRenderers)
{
renderer.material.SetFloat("_MainAlpha", 0f);
foreach (Material m in renderer.materials)
{
m.SetFloat("_MainAlpha", 0);
}
}
}

View File

@@ -22,6 +22,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
public override void Recover()
{
noteVisual.noteMain.SetActive(true);
if (note is Hold && noteVisual.isHighlighted)
{
noteVisual.extraPartList[0].gameObject.SetActive(true);
}
}
public override void Adjust()
@@ -32,7 +37,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
effectParticle.Play();
// effectParticle.transform.DOMove(noteVisual.noteVisualPosition, 0.2f);
if (note is Hold && noteVisual.isHighlighted)
{
noteVisual.extraPartList[0].gameObject.SetActive(false);
}
noteVisual.noteMain.SetActive(false);
LeanPool.Despawn(effectParticle.gameObject, 1);
}

View File

@@ -10,8 +10,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)
@@ -77,11 +77,16 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
public override void SetHighlight()
{
List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
//List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
//partRendererList.ForEach(rend => Destroy(rend.material));
if (!isHighlighted)
if (note is Tap or Hold)
{
extraPartList[0].gameObject.SetActive(isHighlighted);
}
/*if (!isHighlighted)
{
for (int i = 0; i < partRendererList.Count; i++)
{
@@ -94,7 +99,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
{
partRendererList[i].material = Instantiate(highlightMaterialList[i]);
}
}
}*/
}
}

View File

@@ -82,7 +82,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();
}
}