mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 15:05:27 +00:00
feat: 添加阴阳师和技能选择器,完成资产选择器统一架构迁移
- 新增阴阳师和阴阳师技能资产类型配置 - 添加 54 张阴阳师和技能图片资源 - 将式神和御魂选择器迁移到统一的 assetSelector 架构 - 删除 10 个冗余的独立节点和面板组件 - 统一使用 GenericImageSelector 通用选择器 - 完全实现配置驱动的设计理念 - 减少约 800+ 行重复代码 所有资产类型(式神/御魂/阴阳师/技能)现在都通过单一的 assetSelector 节点和通用选择器处理
This commit is contained in:
@@ -71,19 +71,21 @@ const componentGroups = [
|
||||
{
|
||||
id: 'shikigami-select',
|
||||
name: '式神选择器',
|
||||
type: 'shikigamiSelect',
|
||||
type: 'assetSelector',
|
||||
description: '用于选择式神的组件',
|
||||
data: {
|
||||
shikigami: { name: '未选择式神', avatar: '', rarity: '' }
|
||||
assetLibrary: 'shikigami',
|
||||
selectedAsset: null
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'yuhun-select',
|
||||
name: '御魂选择器',
|
||||
type: 'yuhunSelect',
|
||||
type: 'assetSelector',
|
||||
description: '用于选择御魂的组件',
|
||||
data: {
|
||||
yuhun: { name: '未选择御魂', avatar: '', type: '' }
|
||||
assetLibrary: 'yuhun',
|
||||
selectedAsset: null
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -113,6 +115,26 @@ const componentGroups = [
|
||||
damageType: "balanced"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'onmyoji-select',
|
||||
name: '阴阳师选择器',
|
||||
type: 'assetSelector',
|
||||
description: '用于选择阴阳师的组件',
|
||||
data: {
|
||||
assetLibrary: 'onmyoji',
|
||||
selectedAsset: null
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'onmyoji-skill-select',
|
||||
name: '阴阳师技能选择器',
|
||||
type: 'assetSelector',
|
||||
description: '用于选择阴阳师技能的组件',
|
||||
data: {
|
||||
assetLibrary: 'onmyojiSkill',
|
||||
selectedAsset: null
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user