DTM Trail

This commit is contained in:
SoulliesOfficial
2025-04-09 17:54:29 -04:00
parent d4e51999b1
commit 3dbfd6bf62
51 changed files with 47522 additions and 924 deletions

View File

@@ -71,6 +71,7 @@ namespace Ichni.RhythmGame
() => EmissionColorChange.GenerateElement("New Emission Color Change", Guid.NewGuid(), new List<string>(), true,
this, new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat()));
}
}
}

View File

@@ -13,7 +13,7 @@ namespace Ichni.RhythmGame
public TransformSubmodule transformSubmodule { get; set; }
public TimeDurationSubmodule timeDurationSubmodule { get; set; }
public ColorSubmodule colorSubmodule { get; set; }
public bool haveEmission => false;
public virtual bool haveEmission => false;
public static SubstantialObject GenerateElement(string elementName, Guid id, List<string> tags, bool isFirstGenerated,
string themeBundleName, string objectName, GameElement parentElement)

View File

@@ -7,9 +7,9 @@ using UnityEngine;
namespace Ichni.RhythmGame
{
public partial class Trail : GameElement, IHaveTransformSubmodule
public partial class Trail : GameElement, IHaveTransformSubmodule, IHaveTrail
{
public TrailRenderer trailRenderer;
public TrailRenderer trailRenderer { get; set; }
public Material renderMaterial;
public float visibleTimeLength;
@@ -88,7 +88,7 @@ namespace Ichni.RhythmGame
{
foreach (GameElement x in EditorManager.instance.beatmapContainer.gameElementList)
{
if (x is Trail t)
if (x is IHaveTrail t)
{
t.trailRenderer.emitting = emitting;
if(willClear) t.trailRenderer.Clear();
@@ -96,6 +96,11 @@ namespace Ichni.RhythmGame
}
}
}
public interface IHaveTrail
{
TrailRenderer trailRenderer { get; set; }
}
namespace Beatmap
{