From 8e08f58c582e7d3e87843e7cea04c5a1addf4b71 Mon Sep 17 00:00:00 2001 From: nighca Date: Thu, 4 Jul 2024 17:21:14 +0800 Subject: [PATCH] animation details --- .../common/placeholder/EditorPlaceholder.vue | 37 +---- .../editor/sprite/AnimationEditor.vue | 52 +++--- .../editor/sprite/AnimationItem.vue | 10 +- .../editor/sprite/AnimationRemoveModal.vue | 13 +- .../components/editor/sprite/SpriteEditor.vue | 8 +- .../sprite/animation/DurationEditor.vue | 11 +- .../sprite/animation/sound/SoundEditor.vue | 11 +- .../animation/state/BoundStateEditor.vue | 11 +- .../src/components/editor/sprite/gallery.svg | 3 + spx-gui/src/components/ui/empty/UIEmpty.vue | 148 +++++++++++------- .../placeholder.svg => ui/empty/empty-xl.svg} | 2 +- spx-gui/src/models/animation.test.ts | 82 ++++++++++ spx-gui/src/models/animation.ts | 58 ++++--- spx-gui/src/models/sprite.ts | 22 ++- 14 files changed, 308 insertions(+), 160 deletions(-) create mode 100644 spx-gui/src/components/editor/sprite/gallery.svg rename spx-gui/src/components/{editor/common/placeholder/placeholder.svg => ui/empty/empty-xl.svg} (99%) create mode 100644 spx-gui/src/models/animation.test.ts diff --git a/spx-gui/src/components/editor/common/placeholder/EditorPlaceholder.vue b/spx-gui/src/components/editor/common/placeholder/EditorPlaceholder.vue index 58eae5384..59cc484c3 100644 --- a/spx-gui/src/components/editor/common/placeholder/EditorPlaceholder.vue +++ b/spx-gui/src/components/editor/common/placeholder/EditorPlaceholder.vue @@ -1,13 +1,11 @@