Fix event priority.

This commit is contained in:
2023-04-20 20:05:59 +08:00
parent 1c1560f17f
commit 6b3a9c9f0a
2 changed files with 4 additions and 4 deletions

View File

@@ -272,7 +272,7 @@ namespace Cryville.Crtr {
[DefaultValue(0.0f)]
public float sumfix = 0.0f;
public override int Priority { get { return -2; } }
public override int Priority { get { return -0x1000; } }
public Motion() {
SubmitPropOp("motion", new PropOp.String(v => motion = v)); // TODO Obsolete
@@ -307,7 +307,7 @@ namespace Cryville.Crtr {
default: return base.GetEventsOfType(type);
}
}
public override int Priority { get { return 12; } }
public override int Priority { get { return 20; } }
}
public class Judge : ChartEvent {
@@ -335,7 +335,7 @@ namespace Cryville.Crtr {
public class Signature : ChartEvent {
public float? tempo;
public override int Priority { get { return -4; } }
public override int Priority { get { return -0x2000; } }
}
public List<Sound> sounds;

View File

@@ -39,7 +39,7 @@ namespace Cryville.Crtr {
public bool Forced { get; set; }
public override bool CanDiscard { get { return !Forced; } }
public override int Priority { get { return m_priority; } }
public void SetPriority(int value) { m_priority = value; }
public void SetPriority(int value) { m_priority = value + Container.Priority - 0x800; }
}
public class ClipBehind : StampedEvent {