A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(editor): DragonBones in the Create menu, under one skeletal outliner kind
esengine021e4f99c8cd
diff --git a/desktop/src/components/icons.tsx b/desktop/src/components/icons.tsxindex b2b6718c6..f944b55f9 100644--- a/desktop/src/components/icons.tsx+++ b/desktop/src/components/icons.tsx@@ -27,7 +27,7 @@ import { assetTypeDef } from '@/project/assetTypes';const NODE_ICON: Record<NodeKind, LucideIcon> = {camera: Camera,sprite: Image,- spine: PersonStanding,+ skeletal: PersonStanding,physics: Square,ui: LayoutPanelTop,audio: Volume2,diff --git a/desktop/src/engine/entitySources.ts b/desktop/src/engine/entitySources.tsindex 7947c55b7..fa4482357 100644--- a/desktop/src/engine/entitySources.ts+++ b/desktop/src/engine/entitySources.ts@@ -243,6 +243,7 @@ const ANCHOR_SPECS: { comp: string; label: string; comps: CompSpec[] }[] = [{ comp: 'ShapeRenderer', label: 'Shape', comps: ['Transform', 'ShapeRenderer'] },{ comp: 'Mesh2D', label: 'Mesh', comps: ['Transform', 'Mesh2D'] },{ comp: 'SpineAnimation', label: 'Spine', comps: ['Transform', 'SpineAnimation'] },+ { comp: 'DragonBonesAnimation', label: 'DragonBones', comps: ['Transform', 'DragonBonesAnimation'] },{ comp: 'BitmapText', label: 'Bitmap Text', comps: ['Transform', 'BitmapText'] },{ comp: 'Text', label: 'Text', comps: ['Transform', 'Text'] },{ comp: 'ParticleEmitter', label: 'Particles', comps: ['Transform', 'ParticleEmitter'] },diff --git a/desktop/src/engine/schema.ts b/desktop/src/engine/schema.tsindex 369ec20d5..3ce1424e1 100644--- a/desktop/src/engine/schema.ts+++ b/desktop/src/engine/schema.ts@@ -790,7 +790,10 @@ export function modelKindOf(entity: SceneEntityLike): NodeKind {const types = new Set(entity.components.map((c) => c.type));if (types.has('Camera')) return 'camera';if (types.has('Light2D')) return 'light';- if (types.has('SpineAnimation')) return 'spine';+ // One kind for both: to someone scanning the outliner a Spine armature and a+ // DragonBones one are the same sort of thing, and a second identical icon would+ // be a distinction the reader cannot use.+ if (types.has('SpineAnimation') || types.has('DragonBonesAnimation')) return 'skeletal';if (types.has('Canvas') || types.has('BitmapText')) return 'ui';if (types.has('Sprite') || types.has('ShapeRenderer') || types.has('TilemapLayer')) return 'sprite';if (types.has('ParticleEmitter')) return 'sprite';diff --git a/desktop/src/outliner/columns.tsx b/desktop/src/outliner/columns.tsxindex 5fbcfbf84..b339820b6 100644--- a/desktop/src/outliner/columns.tsx+++ b/desktop/src/outliner/columns.tsx@@ -37,7 +37,7 @@ export interface OutlinerColumn {const KIND_TYPE: Record<NodeKind, string> = {camera: t('out.kindCamera'),sprite: t('out.kindSprite'),- spine: t('out.kindSpine'),+ skeletal: t('out.kindSpine'),physics: t('out.kindPhysics'),ui: t('out.kindUi'),audio: t('out.kindAudio'),diff --git a/desktop/src/panels/Details.tsx b/desktop/src/panels/Details.tsxindex e18a09d3f..4336f13c3 100644--- a/desktop/src/panels/Details.tsx+++ b/desktop/src/panels/Details.tsx@@ -162,7 +162,7 @@ function componentIcon(name: string): LucideIcon {const KIND_LABEL: Record<NodeKind, string> = {camera: t('det.kindCamera'),sprite: t('det.kindSprite'),- spine: t('det.kindSpine'),+ skeletal: t('det.kindSpine'),physics: t('det.kindPhysics'),ui: t('det.kindUi'),audio: t('det.kindAudio'),diff --git a/desktop/src/types.ts b/desktop/src/types.tsindex b1d68ec06..792fe8db5 100644--- a/desktop/src/types.ts+++ b/desktop/src/types.ts@@ -9,7 +9,7 @@ export type EntityId = number;export type NodeKind =| 'camera'| 'sprite'- | 'spine'+ | 'skeletal'| 'physics'| 'ui'| 'audio'