Add impulse sequence handling in ProjectSchedulePane
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
findHeldSequenceControlEffect,
|
findHeldSequenceControlEffect,
|
||||||
getProjectScheduleRoutineHeldSteps,
|
getProjectScheduleRoutineHeldSteps,
|
||||||
|
getProjectSequenceImpulseSteps,
|
||||||
getProjectSequenceHeldSteps
|
getProjectSequenceHeldSteps
|
||||||
} from "../sequencer/project-sequence-steps";
|
} from "../sequencer/project-sequence-steps";
|
||||||
import {
|
import {
|
||||||
@@ -231,7 +232,9 @@ function getRoutineSummary(
|
|||||||
} else {
|
} else {
|
||||||
const effect = heldSteps[0];
|
const effect = heldSteps[0];
|
||||||
|
|
||||||
if (effect?.type === "controlEffect") {
|
if (routine.target.kind === "global" && routine.sequenceId !== null) {
|
||||||
|
summaryParts.push("Impulse Sequence");
|
||||||
|
} else if (effect?.type === "controlEffect") {
|
||||||
summaryParts.push(formatControlEffectValue(effect.effect));
|
summaryParts.push(formatControlEffectValue(effect.effect));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -724,9 +727,9 @@ export function ProjectSequencerPane({
|
|||||||
{selectedRoutine.sequenceId === null &&
|
{selectedRoutine.sequenceId === null &&
|
||||||
compatibleHeldSequences.length === 0 ? (
|
compatibleHeldSequences.length === 0 ? (
|
||||||
<div className="material-summary">
|
<div className="material-summary">
|
||||||
No compatible sequence with held effects is authored for this
|
{selectedRoutine.target.kind === "global"
|
||||||
target yet. Use Sequence Editor to author effects, or keep
|
? "No compatible impulse sequence is authored yet for this project event lane. Use Sequence Editor to author one-shot effects like scene transitions, dialogue starts, or teleports."
|
||||||
this placement on its own inline effects.
|
: "No compatible sequence with held effects is authored for this target yet. Use Sequence Editor to author effects, or keep this placement on its own inline effects."}
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{selectedRoutine.sequenceId === null &&
|
{selectedRoutine.sequenceId === null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user