Add new actor control effect options
This commit is contained in:
@@ -2,10 +2,12 @@ import type { ProjectDocument, ProjectScene } from "../document/scene-document";
|
|||||||
import { getScenePathLabel, getScenePaths } from "../document/paths";
|
import { getScenePathLabel, getScenePaths } from "../document/paths";
|
||||||
import {
|
import {
|
||||||
createActiveSceneControlTargetRef,
|
createActiveSceneControlTargetRef,
|
||||||
|
createFollowActorPathControlEffect,
|
||||||
createActorControlTargetRef,
|
createActorControlTargetRef,
|
||||||
createInteractionControlTargetRef,
|
createInteractionControlTargetRef,
|
||||||
createLightControlTargetRef,
|
createLightControlTargetRef,
|
||||||
createModelInstanceControlTargetRef,
|
createModelInstanceControlTargetRef,
|
||||||
|
createPlayActorAnimationControlEffect,
|
||||||
createPlayModelAnimationControlEffect,
|
createPlayModelAnimationControlEffect,
|
||||||
createPlaySoundControlEffect,
|
createPlaySoundControlEffect,
|
||||||
createSetActorPresenceControlEffect,
|
createSetActorPresenceControlEffect,
|
||||||
@@ -36,6 +38,8 @@ import { listProjectNpcActors } from "../entities/npc-actor-registry";
|
|||||||
export const PROJECT_SCHEDULE_EFFECT_OPTION_IDS = [
|
export const PROJECT_SCHEDULE_EFFECT_OPTION_IDS = [
|
||||||
"actor.present",
|
"actor.present",
|
||||||
"actor.hidden",
|
"actor.hidden",
|
||||||
|
"actor.playAnimation",
|
||||||
|
"actor.followPath",
|
||||||
"model.playAnimation",
|
"model.playAnimation",
|
||||||
"model.stopAnimation",
|
"model.stopAnimation",
|
||||||
"model.visible",
|
"model.visible",
|
||||||
@@ -61,7 +65,7 @@ export type ProjectScheduleEffectOptionId =
|
|||||||
export interface ProjectScheduleEffectOption {
|
export interface ProjectScheduleEffectOption {
|
||||||
id: ProjectScheduleEffectOptionId;
|
id: ProjectScheduleEffectOptionId;
|
||||||
label: string;
|
label: string;
|
||||||
valueKind: "none" | "number" | "color" | "animation";
|
valueKind: "none" | "number" | "color" | "animation" | "path";
|
||||||
valueLabel?: string;
|
valueLabel?: string;
|
||||||
min?: number;
|
min?: number;
|
||||||
step?: number;
|
step?: number;
|
||||||
@@ -123,6 +127,16 @@ const PROJECT_SCHEDULE_EFFECT_OPTIONS: Record<
|
|||||||
label: "Hidden",
|
label: "Hidden",
|
||||||
valueKind: "none"
|
valueKind: "none"
|
||||||
},
|
},
|
||||||
|
"actor.playAnimation": {
|
||||||
|
id: "actor.playAnimation",
|
||||||
|
label: "Play Animation",
|
||||||
|
valueKind: "animation"
|
||||||
|
},
|
||||||
|
"actor.followPath": {
|
||||||
|
id: "actor.followPath",
|
||||||
|
label: "Follow Path",
|
||||||
|
valueKind: "path"
|
||||||
|
},
|
||||||
"model.playAnimation": {
|
"model.playAnimation": {
|
||||||
id: "model.playAnimation",
|
id: "model.playAnimation",
|
||||||
label: "Play Animation",
|
label: "Play Animation",
|
||||||
|
|||||||
Reference in New Issue
Block a user