mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-18 07:35:19 +00:00
UI styling, main workspace layout (#119)
This commit is contained in:
@@ -1164,10 +1164,16 @@ mod wasm {
|
||||
};
|
||||
}
|
||||
|
||||
export interface AnimationTrack {
|
||||
name?: string;
|
||||
targetType: SceneElement;
|
||||
animationTarget: AnimationTarget;
|
||||
}
|
||||
|
||||
export interface UpdateAnimationTargets extends CustomEvent {
|
||||
type: "update-animation-targets",
|
||||
detail: {
|
||||
added: Record<string, { name?: string, target_type: SceneElement, animation_target: AnimationTarget } >,
|
||||
added: Record<string, AnimationTrack>,
|
||||
removed: string[]
|
||||
}
|
||||
}
|
||||
@@ -1177,9 +1183,9 @@ mod wasm {
|
||||
time: number,
|
||||
entity: string,
|
||||
incoming_easing: "linear" | "cubic-hermite",
|
||||
affect_translation: bool,
|
||||
affect_rotation: bool,
|
||||
affect_scale: bool
|
||||
affect_translation: boolean,
|
||||
affect_rotation: boolean,
|
||||
affect_scale: boolean
|
||||
}
|
||||
|
||||
export interface TimedAnimationClipInfo {
|
||||
@@ -1221,6 +1227,7 @@ mod wasm {
|
||||
"#;
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct AddedAnimationTargetRecordItem {
|
||||
name: Option<String>,
|
||||
target_type: SceneElement,
|
||||
|
||||
@@ -316,6 +316,8 @@ fn initialize(mut cmd: Commands) {
|
||||
..default()
|
||||
},
|
||||
Fxaa::default(),
|
||||
// FIXME: This should not be the user-visible/keyframable camera
|
||||
SceneElement::Camera,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user