Refactor sequence handling and add new sequences panel

This commit is contained in:
2026-04-15 01:13:32 +02:00
parent 4cab97d785
commit 36f81d74b0
8 changed files with 585 additions and 450 deletions

View File

@@ -3541,7 +3541,7 @@ function readProjectSequenceEffect(value: unknown, label: string): SequenceClip
};
case "startDialogue":
if (stepClass !== "impulse") {
throw new Error(`${label}.startDialogue clips must use the impulse class.`);
throw new Error(`${label}.startDialogue effects must use the impulse class.`);
}
return {
@@ -3551,7 +3551,7 @@ function readProjectSequenceEffect(value: unknown, label: string): SequenceClip
};
case "teleportPlayer":
if (stepClass !== "impulse") {
throw new Error(`${label}.teleportPlayer clips must use the impulse class.`);
throw new Error(`${label}.teleportPlayer effects must use the impulse class.`);
}
return {
@@ -3564,7 +3564,7 @@ function readProjectSequenceEffect(value: unknown, label: string): SequenceClip
};
case "toggleVisibility":
if (stepClass !== "impulse") {
throw new Error(`${label}.toggleVisibility clips must use the impulse class.`);
throw new Error(`${label}.toggleVisibility effects must use the impulse class.`);
}
return {