refactor(mission): 重构卡牌系统为英雄卡槽组件
1. 新增CHeroComp作为英雄卡槽专用组件,替换原CardComp 2. 调整mission.prefab布局与预制体引用,适配新卡槽组件 3. 优化MissionCardComp的卡槽缓存与布局逻辑 4. 更新所有相关注释与类型引用,统一代码语义
This commit is contained in:
4788
assets/resources/gui/element/cHero.prefab
Normal file
4788
assets/resources/gui/element/cHero.prefab
Normal file
File diff suppressed because it is too large
Load Diff
13
assets/resources/gui/element/cHero.prefab.meta
Normal file
13
assets/resources/gui/element/cHero.prefab.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.50",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "f2f9a3e0-d0f5-46f4-84bd-dd54c2248470",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "cHero"
|
||||
}
|
||||
}
|
||||
@@ -5906,7 +5906,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "cards",
|
||||
"_name": "cbox",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
@@ -5931,7 +5931,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 296.948,
|
||||
"y": 280,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -5971,8 +5971,8 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 519.4,
|
||||
"height": 300
|
||||
"width": 720,
|
||||
"height": 340
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -5983,7 +5983,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "d52ar8fGRCcJCkEGKYqLmS"
|
||||
"fileId": "78ZkzaYgNLrq5b2cza8aKb"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
@@ -5997,14 +5997,14 @@
|
||||
"__prefab": {
|
||||
"__id__": 352
|
||||
},
|
||||
"_alignFlags": 42,
|
||||
"_alignFlags": 45,
|
||||
"_target": null,
|
||||
"_left": 100.30000000000001,
|
||||
"_right": 100.30000000000001,
|
||||
"_top": -491.51300000000003,
|
||||
"_bottom": 491.51300000000003,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 110,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 71.94799999999998,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
@@ -6012,14 +6012,14 @@
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 100,
|
||||
"_originalHeight": 300,
|
||||
"_originalHeight": 100,
|
||||
"_alignMode": 2,
|
||||
"_lockFlags": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "4dDc0+apdNPrjk0bxsb5yf"
|
||||
"fileId": "6d6l1qXbRM3alP2Uq/Ylu4"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Layout",
|
||||
@@ -6029,11 +6029,11 @@
|
||||
"node": {
|
||||
"__id__": 348
|
||||
},
|
||||
"_enabled": false,
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 354
|
||||
},
|
||||
"_resizeMode": 1,
|
||||
"_resizeMode": 0,
|
||||
"_layoutType": 1,
|
||||
"_cellSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -6041,11 +6041,11 @@
|
||||
"height": 40
|
||||
},
|
||||
"_startAxis": 0,
|
||||
"_paddingLeft": 0,
|
||||
"_paddingRight": 0,
|
||||
"_paddingLeft": 10,
|
||||
"_paddingRight": 10,
|
||||
"_paddingTop": 0,
|
||||
"_paddingBottom": 0,
|
||||
"_spacingX": 4.7,
|
||||
"_spacingX": 5,
|
||||
"_spacingY": 0,
|
||||
"_verticalDirection": 1,
|
||||
"_horizontalDirection": 0,
|
||||
@@ -6057,7 +6057,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "81yCxsR/BPCro5/jgovbJu"
|
||||
"fileId": "986NWAVihCn4rQg8WZ0eck"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -6067,7 +6067,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "f2mrMK3fBJT4tB+8JEKln0",
|
||||
"fileId": "52iIpQHPNPd56azk49eqsK",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
@@ -18390,7 +18390,7 @@
|
||||
"__id__": 348
|
||||
},
|
||||
"cardPrefab": {
|
||||
"__uuid__": "8aaff904-8c27-4173-9716-7161893b336e",
|
||||
"__uuid__": "f2f9a3e0-d0f5-46f4-84bd-dd54c2248470",
|
||||
"__expectedType__": "cc.Prefab"
|
||||
},
|
||||
"cards_chou": {
|
||||
@@ -18405,8 +18405,12 @@
|
||||
"showHeros": {
|
||||
"__id__": 924
|
||||
},
|
||||
"herosPanNode": null,
|
||||
"herosBoxNode": null,
|
||||
"herosPanNode": {
|
||||
"__id__": 227
|
||||
},
|
||||
"herosBoxNode": {
|
||||
"__id__": 247
|
||||
},
|
||||
"heroPrefab": null,
|
||||
"showEquips": {
|
||||
"__id__": 953
|
||||
@@ -18424,9 +18428,16 @@
|
||||
"showSkills": {
|
||||
"__id__": 985
|
||||
},
|
||||
"skillPanNode": null,
|
||||
"skillBoxNode": null,
|
||||
"skillPrefab": null,
|
||||
"skillPanNode": {
|
||||
"__id__": 621
|
||||
},
|
||||
"skillBoxNode": {
|
||||
"__id__": 662
|
||||
},
|
||||
"skillPrefab": {
|
||||
"__uuid__": "78a5b2d1-a34b-4190-895d-7d0aa22037cc",
|
||||
"__expectedType__": "cc.Prefab"
|
||||
},
|
||||
"showShop": {
|
||||
"__id__": 1014
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user