ui 整体修改

This commit is contained in:
2024-12-22 23:52:22 +08:00
parent 177bc0e346
commit 26c673e95b
18 changed files with 8067 additions and 9817 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -22,41 +22,41 @@
"__id__": 2
},
{
"__id__": 8
"__id__": 14
},
{
"__id__": 22
"__id__": 28
},
{
"__id__": 38
"__id__": 44
},
{
"__id__": 54
"__id__": 60
},
{
"__id__": 68
},
{
"__id__": 82
"__id__": 74
},
{
"__id__": 88
},
{
"__id__": 94
}
],
"_active": true,
"_components": [
{
"__id__": 94
"__id__": 100
},
{
"__id__": 96
"__id__": 102
},
{
"__id__": 98
"__id__": 104
}
],
"_prefab": {
"__id__": 100
"__id__": 106
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -95,18 +95,22 @@
"_parent": {
"__id__": 1
},
"_children": [],
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [
{
"__id__": 3
"__id__": 9
},
{
"__id__": 5
"__id__": 11
}
],
"_prefab": {
"__id__": 7
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -137,6 +141,142 @@
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "CardFrame01_Glow",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
},
{
"__id__": 6
}
],
"_prefab": {
"__id__": 8
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 6.522,
"y": 35.873,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 226,
"height": 226
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6c5Ubt/rpK77HAdgPClBmq"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 7
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a4212",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d5bgliYxlCNrhzjGiFoWOk"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "776rHAllZIN6qAuYohq8jk",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -147,7 +287,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 4
"__id__": 10
},
"_contentSize": {
"__type__": "cc.Size",
@@ -175,7 +315,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 6
"__id__": 12
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -233,23 +373,23 @@
},
"_children": [
{
"__id__": 9
"__id__": 15
}
],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 21
},
{
"__id__": 17
"__id__": 23
},
{
"__id__": 19
"__id__": 25
}
],
"_prefab": {
"__id__": 21
"__id__": 27
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -286,20 +426,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 8
"__id__": 14
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
"__id__": 16
},
{
"__id__": 12
"__id__": 18
}
],
"_prefab": {
"__id__": 14
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -336,11 +476,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 9
"__id__": 15
},
"_enabled": true,
"__prefab": {
"__id__": 11
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
@@ -364,11 +504,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 9
"__id__": 15
},
"_enabled": true,
"__prefab": {
"__id__": 13
"__id__": 19
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -422,11 +562,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
"__id__": 14
},
"_enabled": true,
"__prefab": {
"__id__": 16
"__id__": 22
},
"_contentSize": {
"__type__": "cc.Size",
@@ -450,11 +590,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
"__id__": 14
},
"_enabled": true,
"__prefab": {
"__id__": 18
"__id__": 24
},
"_type": 0,
"_inverted": false,
@@ -472,11 +612,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
"__id__": 14
},
"_enabled": true,
"__prefab": {
"__id__": 20
"__id__": 26
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -535,20 +675,20 @@
},
"_children": [
{
"__id__": 23
"__id__": 29
},
{
"__id__": 29
"__id__": 35
}
],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 41
}
],
"_prefab": {
"__id__": 37
"__id__": 43
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -585,20 +725,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 22
"__id__": 28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 30
},
{
"__id__": 26
"__id__": 32
}
],
"_prefab": {
"__id__": 28
"__id__": 34
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -635,11 +775,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
"__id__": 29
},
"_enabled": true,
"__prefab": {
"__id__": 25
"__id__": 31
},
"_contentSize": {
"__type__": "cc.Size",
@@ -663,11 +803,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
"__id__": 29
},
"_enabled": true,
"__prefab": {
"__id__": 27
"__id__": 33
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -744,20 +884,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 22
"__id__": 28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 36
},
{
"__id__": 32
"__id__": 38
}
],
"_prefab": {
"__id__": 34
"__id__": 40
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -794,11 +934,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 29
"__id__": 35
},
"_enabled": true,
"__prefab": {
"__id__": 31
"__id__": 37
},
"_contentSize": {
"__type__": "cc.Size",
@@ -822,11 +962,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 29
"__id__": 35
},
"_enabled": true,
"__prefab": {
"__id__": 33
"__id__": 39
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -880,11 +1020,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
"__id__": 28
},
"_enabled": true,
"__prefab": {
"__id__": 36
"__id__": 42
},
"_contentSize": {
"__type__": "cc.Size",
@@ -925,20 +1065,20 @@
},
"_children": [
{
"__id__": 39
"__id__": 45
},
{
"__id__": 45
"__id__": 51
}
],
"_active": true,
"_components": [
{
"__id__": 51
"__id__": 57
}
],
"_prefab": {
"__id__": 53
"__id__": 59
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -975,20 +1115,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 38
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 46
},
{
"__id__": 42
"__id__": 48
}
],
"_prefab": {
"__id__": 44
"__id__": 50
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1025,11 +1165,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"__id__": 45
},
"_enabled": true,
"__prefab": {
"__id__": 41
"__id__": 47
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1053,11 +1193,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
"__id__": 45
},
"_enabled": true,
"__prefab": {
"__id__": 43
"__id__": 49
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -1134,20 +1274,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 38
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 52
},
{
"__id__": 48
"__id__": 54
}
],
"_prefab": {
"__id__": 50
"__id__": 56
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1184,11 +1324,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 45
"__id__": 51
},
"_enabled": true,
"__prefab": {
"__id__": 47
"__id__": 53
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1212,11 +1352,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 45
"__id__": 51
},
"_enabled": true,
"__prefab": {
"__id__": 49
"__id__": 55
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -1270,11 +1410,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
"__id__": 44
},
"_enabled": true,
"__prefab": {
"__id__": 52
"__id__": 58
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1315,23 +1455,23 @@
},
"_children": [
{
"__id__": 55
"__id__": 61
}
],
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 67
},
{
"__id__": 63
"__id__": 69
},
{
"__id__": 65
"__id__": 71
}
],
"_prefab": {
"__id__": 67
"__id__": 73
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1368,20 +1508,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 54
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 62
},
{
"__id__": 58
"__id__": 64
}
],
"_prefab": {
"__id__": 60
"__id__": 66
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1418,11 +1558,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
"__id__": 61
},
"_enabled": true,
"__prefab": {
"__id__": 57
"__id__": 63
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1446,11 +1586,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 55
"__id__": 61
},
"_enabled": true,
"__prefab": {
"__id__": 59
"__id__": 65
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -1504,11 +1644,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
"__id__": 60
},
"_enabled": true,
"__prefab": {
"__id__": 62
"__id__": 68
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1532,11 +1672,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
"__id__": 60
},
"_enabled": true,
"__prefab": {
"__id__": 64
"__id__": 70
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -1577,14 +1717,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
"__id__": 60
},
"_enabled": true,
"__prefab": {
"__id__": 66
"__id__": 72
},
"_barSprite": {
"__id__": 58
"__id__": 64
},
"_mode": 0,
"_totalLength": 130,
@@ -1619,23 +1759,23 @@
},
"_children": [
{
"__id__": 69
"__id__": 75
}
],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 81
},
{
"__id__": 77
"__id__": 83
},
{
"__id__": 79
"__id__": 85
}
],
"_prefab": {
"__id__": 81
"__id__": 87
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1672,20 +1812,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 68
"__id__": 74
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
"__id__": 76
},
{
"__id__": 72
"__id__": 78
}
],
"_prefab": {
"__id__": 74
"__id__": 80
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1722,11 +1862,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 69
"__id__": 75
},
"_enabled": true,
"__prefab": {
"__id__": 71
"__id__": 77
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1750,11 +1890,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 69
"__id__": 75
},
"_enabled": true,
"__prefab": {
"__id__": 73
"__id__": 79
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -1808,11 +1948,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 68
"__id__": 74
},
"_enabled": true,
"__prefab": {
"__id__": 76
"__id__": 82
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1836,11 +1976,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 68
"__id__": 74
},
"_enabled": true,
"__prefab": {
"__id__": 78
"__id__": 84
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -1881,14 +2021,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 68
"__id__": 74
},
"_enabled": true,
"__prefab": {
"__id__": 80
"__id__": 86
},
"_barSprite": {
"__id__": 72
"__id__": 78
},
"_mode": 0,
"_totalLength": 130,
@@ -1925,14 +2065,14 @@
"_active": true,
"_components": [
{
"__id__": 83
"__id__": 89
},
{
"__id__": 85
"__id__": 91
}
],
"_prefab": {
"__id__": 87
"__id__": 93
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1969,11 +2109,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 82
"__id__": 88
},
"_enabled": true,
"__prefab": {
"__id__": 84
"__id__": 90
},
"_contentSize": {
"__type__": "cc.Size",
@@ -1997,11 +2137,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 82
"__id__": 88
},
"_enabled": true,
"__prefab": {
"__id__": 86
"__id__": 92
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -2084,14 +2224,14 @@
"_active": false,
"_components": [
{
"__id__": 89
"__id__": 95
},
{
"__id__": 91
"__id__": 97
}
],
"_prefab": {
"__id__": 93
"__id__": 99
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2128,11 +2268,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 88
"__id__": 94
},
"_enabled": true,
"__prefab": {
"__id__": 90
"__id__": 96
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2156,11 +2296,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 88
"__id__": 94
},
"_enabled": true,
"__prefab": {
"__id__": 92
"__id__": 98
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -2218,7 +2358,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 95
"__id__": 101
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2246,7 +2386,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 97
"__id__": 103
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -2288,7 +2428,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 99
"__id__": 105
},
"_id": ""
},

View File

@@ -25,20 +25,23 @@
"__id__": 11
},
{
"__id__": 31
"__id__": 17
},
{
"__id__": 37
}
],
"_active": true,
"_components": [
{
"__id__": 37
"__id__": 43
},
{
"__id__": 39
"__id__": 45
}
],
"_prefab": {
"__id__": 41
"__id__": 47
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -167,13 +170,13 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"r": 0,
"g": 255,
"b": 255,
"b": 122,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@54ac8",
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@f0800",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -280,6 +283,142 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "CardFrame01_Glow",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 14
}
],
"_prefab": {
"__id__": 16
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0.9769999999999754,
"y": 1.9529999999999745,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.6,
"y": 0.6,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"_contentSize": {
"__type__": "cc.Size",
"width": 226,
"height": 226
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "75T2T4wr1GhbC983WR3hQE"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@a4212",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b7N2cM2+NGjZUfDwhbVmgC"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "196eXuSHBAJbzxF4vaPPTK",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "hero",
@@ -290,31 +429,31 @@
},
"_children": [
{
"__id__": 12
"__id__": 18
},
{
"__id__": 18
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 30
},
{
"__id__": 26
"__id__": 32
},
{
"__id__": 28
"__id__": 34
}
],
"_prefab": {
"__id__": 30
"__id__": 36
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"x": 0.977,
"y": 1.953,
"z": 0
},
"_lrot": {
@@ -346,20 +485,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 11
"__id__": 17
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 19
},
{
"__id__": 15
"__id__": 21
}
],
"_prefab": {
"__id__": 17
"__id__": 23
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -396,11 +535,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 14
"__id__": 20
},
"_contentSize": {
"__type__": "cc.Size",
@@ -424,11 +563,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 16
"__id__": 22
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -482,20 +621,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 11
"__id__": 17
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 19
"__id__": 25
},
{
"__id__": 21
"__id__": 27
}
],
"_prefab": {
"__id__": 23
"__id__": 29
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -532,11 +671,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
"__id__": 24
},
"_enabled": true,
"__prefab": {
"__id__": 20
"__id__": 26
},
"_contentSize": {
"__type__": "cc.Size",
@@ -560,11 +699,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 18
"__id__": 24
},
"_enabled": true,
"__prefab": {
"__id__": 22
"__id__": 28
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -618,11 +757,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
"__id__": 17
},
"_enabled": true,
"__prefab": {
"__id__": 25
"__id__": 31
},
"_contentSize": {
"__type__": "cc.Size",
@@ -646,11 +785,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
"__id__": 17
},
"_enabled": true,
"__prefab": {
"__id__": 27
"__id__": 33
},
"_type": 3,
"_inverted": false,
@@ -668,11 +807,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
"__id__": 17
},
"_enabled": true,
"__prefab": {
"__id__": 29
"__id__": 35
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -732,14 +871,14 @@
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 38
},
{
"__id__": 34
"__id__": 40
}
],
"_prefab": {
"__id__": 36
"__id__": 42
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -776,11 +915,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
"__id__": 37
},
"_enabled": true,
"__prefab": {
"__id__": 33
"__id__": 39
},
"_contentSize": {
"__type__": "cc.Size",
@@ -804,11 +943,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
"__id__": 37
},
"_enabled": true,
"__prefab": {
"__id__": 35
"__id__": 41
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -889,7 +1028,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 38
"__id__": 44
},
"_contentSize": {
"__type__": "cc.Size",
@@ -917,7 +1056,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 40
"__id__": 46
},
"_id": ""
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -326,7 +326,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,

View File

@@ -102,8 +102,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 0.4,
"y": 0.4,
"z": 1
},
"_mobility": 0,
@@ -130,8 +130,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 60
"width": 140,
"height": 114
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -167,7 +167,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@d4108",
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@d27fa",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -238,8 +238,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 0.4,
"y": 0.4,
"z": 1
},
"_mobility": 0,
@@ -266,8 +266,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 60
"width": 140,
"height": 114
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -297,13 +297,13 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 68,
"g": 238,
"b": 109,
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@d4108",
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@0ec4f",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -340,7 +340,7 @@
},
{
"__type__": "cc.Node",
"_name": "ListFrame00_03~04_Bg",
"_name": "b",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -374,8 +374,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 0.4,
"y": 0.4,
"z": 1
},
"_mobility": 0,
@@ -402,8 +402,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 130,
"height": 60
"width": 140,
"height": 114
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -414,7 +414,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f5ip72LI1CbbSpsgvDq8d8"
"fileId": "6c5thw+d5LuJweEn8LC0QS"
},
{
"__type__": "cc.Sprite",
@@ -433,13 +433,13 @@
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 68,
"g": 238,
"b": 109,
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@d4108",
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@b6f73",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -459,7 +459,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "45zPY8b1dAn7+IZWdv8Lfd"
"fileId": "6aJ5EEDAdD1bd38te7vOZD"
},
{
"__type__": "cc.PrefabInfo",
@@ -469,7 +469,7 @@
"asset": {
"__id__": 0
},
"fileId": "f0QEN2UY5Eepzom6Irte1T",
"fileId": "0dF22cpQtPIYxSHWKEsLcI",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null

View File

@@ -37,23 +37,23 @@
"__id__": 108
},
{
"__id__": 131
"__id__": 133
},
{
"__id__": 137
"__id__": 139
}
],
"_active": true,
"_components": [
{
"__id__": 143
"__id__": 145
},
{
"__id__": 145
"__id__": 147
}
],
"_prefab": {
"__id__": 147
"__id__": 149
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2518,25 +2518,25 @@
"__id__": 109
},
{
"__id__": 119
"__id__": 121
}
],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 127
},
{
"__id__": 127
"__id__": 129
}
],
"_prefab": {
"__id__": 130
"__id__": 132
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -187.243,
"y": -198.311,
"z": 0
},
"_lrot": {
@@ -2611,6 +2611,9 @@
},
{
"__id__": 117
},
{
"__id__": 119
}
],
"removedComponents": []
@@ -2687,8 +2690,8 @@
],
"value": {
"__type__": "cc.Vec3",
"x": 1.2,
"y": 1.2,
"x": 0.5,
"y": 0.5,
"z": 1
}
},
@@ -2698,6 +2701,26 @@
"5bn06HEQlJbqIT+pV5z5Z9"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 120
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 320,
"height": 120
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"7cujPnYyxKbqg9fKSaRa+l"
]
},
{
"__type__": "cc.Node",
"_name": "bt",
@@ -2710,14 +2733,14 @@
"_active": true,
"_components": [
{
"__id__": 120
"__id__": 122
},
{
"__id__": 122
"__id__": 124
}
],
"_prefab": {
"__id__": 124
"__id__": 126
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2754,11 +2777,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 119
"__id__": 121
},
"_enabled": true,
"__prefab": {
"__id__": 121
"__id__": 123
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2782,11 +2805,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 119
"__id__": 121
},
"_enabled": true,
"__prefab": {
"__id__": 123
"__id__": 125
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -2867,7 +2890,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 126
"__id__": 128
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2895,11 +2918,11 @@
},
"_enabled": true,
"__prefab": {
"__id__": 128
"__id__": 130
},
"clickEvents": [
{
"__id__": 129
"__id__": 131
}
],
"_interactable": true,
@@ -2980,14 +3003,14 @@
"_active": true,
"_components": [
{
"__id__": 132
"__id__": 134
},
{
"__id__": 134
"__id__": 136
}
],
"_prefab": {
"__id__": 136
"__id__": 138
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3024,11 +3047,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 131
"__id__": 133
},
"_enabled": true,
"__prefab": {
"__id__": 133
"__id__": 135
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3052,11 +3075,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 131
"__id__": 133
},
"_enabled": true,
"__prefab": {
"__id__": 135
"__id__": 137
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3116,14 +3139,14 @@
"_active": true,
"_components": [
{
"__id__": 138
"__id__": 140
},
{
"__id__": 140
"__id__": 142
}
],
"_prefab": {
"__id__": 142
"__id__": 144
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3160,11 +3183,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 137
"__id__": 139
},
"_enabled": true,
"__prefab": {
"__id__": 139
"__id__": 141
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3188,11 +3211,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 137
"__id__": 139
},
"_enabled": true,
"__prefab": {
"__id__": 141
"__id__": 143
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3273,7 +3296,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 144
"__id__": 146
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3301,7 +3324,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 146
"__id__": 148
},
"_id": ""
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1000 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

File diff suppressed because it is too large Load Diff

View File

@@ -25,14 +25,10 @@ export class HeroCard extends ecs.Entity {
const sprite = node.getChildByName("Mask").getChildByName("hero").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
});
node.getChildByName("lv").getComponent(Label).string = smc.heros[uuid].lv.toString()+"级";
if(smc.heros[uuid].slv>=1) {slv.getChildByName("s1").active=true} else {slv.getChildByName("s1").active=false};
if(smc.heros[uuid].slv>=2) {slv.getChildByName("s2").active=true} else {slv.getChildByName("s2").active=false};
if(smc.heros[uuid].slv>=3) {slv.getChildByName("s3").active=true} else {slv.getChildByName("s3").active=false};
if(smc.heros[uuid].slv>=4) {slv.getChildByName("s4").active=true} else {slv.getChildByName("s4").active=false};
if(smc.heros[uuid].slv>=5) {slv.getChildByName("s5").active=true} else {slv.getChildByName("s5").active=false};
let hcc = node.getComponent(HeroCardComp)!;
hcc.h_uuid = uuid;
hcc.update_data();
this.add(hcc);
}
/** 模块资源释放 */

View File

@@ -37,15 +37,18 @@ export class HeroCardComp extends CCComp {
show_bg(val:boolean){
this.node.getChildByName("show").active=val
}
update_data(event: string, args: any){
if(args.uuid!=this.h_uuid) return
update_data(){
let slv = this.node.getChildByName("slv")
this.node.getChildByName("lv").getComponent(Label).string=smc.heros[this.h_uuid].lv.toString()+"级"
if(smc.heros[this.h_uuid].slv>=1) {slv.getChildByName("s1").active=true} else {slv.getChildByName("s1").active=false};
if(smc.heros[this.h_uuid].slv>=2) {slv.getChildByName("s2").active=true} else {slv.getChildByName("s2").active=false};
if(smc.heros[this.h_uuid].slv>=3) {slv.getChildByName("s3").active=true} else {slv.getChildByName("s3").active=false};
if(smc.heros[this.h_uuid].slv>=4) {slv.getChildByName("s4").active=true} else {slv.getChildByName("s4").active=false};
if(smc.heros[this.h_uuid].slv>=5) {slv.getChildByName("s5").active=true} else {slv.getChildByName("s5").active=false};
if(smc.heros[this.h_uuid].slv==0){
this.node.getChildByName("lock").active=true
slv.active=false
}else{
slv.active=true
this.node.getChildByName("lock").active=false
slv.getChildByName("slv").getComponent(Label).string=smc.heros[this.h_uuid].slv.toString()
}
}
/** 全局消息逻辑处理 */
// private onHandler(event: string, args: any) {

View File

@@ -25,14 +25,9 @@ export class HeroSelect extends ecs.Entity {
const sprite = node.getChildByName("Mask").getChildByName("hero").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
});
node.getChildByName("lv").getComponent(Label).string = smc.heros[uuid].lv.toString()+"级";
if(smc.heros[uuid].slv>=1) {slv.getChildByName("s1").active=true} else {slv.getChildByName("s1").active=false};
if(smc.heros[uuid].slv>=2) {slv.getChildByName("s2").active=true} else {slv.getChildByName("s2").active=false};
if(smc.heros[uuid].slv>=3) {slv.getChildByName("s3").active=true} else {slv.getChildByName("s3").active=false};
if(smc.heros[uuid].slv>=4) {slv.getChildByName("s4").active=true} else {slv.getChildByName("s4").active=false};
if(smc.heros[uuid].slv>=5) {slv.getChildByName("s5").active=true} else {slv.getChildByName("s5").active=false};
let hcc = node.getComponent(HeroSelectComp)!;
hcc.h_uuid = uuid;
hcc.update_data();
this.add(hcc);
}

View File

@@ -52,15 +52,15 @@ export class HeroSelectComp extends CCComp {
show_bg(val:boolean){
this.node.getChildByName("show").active=val
}
update_data(event: string, args: any){
if(args.uuid!=this.h_uuid) return
update_data(){
let slv = this.node.getChildByName("slv")
this.node.getChildByName("lv").getComponent(Label).string=smc.heros[this.h_uuid].lv.toString()+"级"
if(smc.heros[this.h_uuid].slv>=1) {slv.getChildByName("s1").active=true} else {slv.getChildByName("s1").active=false};
if(smc.heros[this.h_uuid].slv>=2) {slv.getChildByName("s2").active=true} else {slv.getChildByName("s2").active=false};
if(smc.heros[this.h_uuid].slv>=3) {slv.getChildByName("s3").active=true} else {slv.getChildByName("s3").active=false};
if(smc.heros[this.h_uuid].slv>=4) {slv.getChildByName("s4").active=true} else {slv.getChildByName("s4").active=false};
if(smc.heros[this.h_uuid].slv>=5) {slv.getChildByName("s5").active=true} else {slv.getChildByName("s5").active=false};
if(smc.heros[this.h_uuid].slv==0){
slv.active=false
}else{
slv.active=true
slv.getChildByName("slv").getComponent(Label).string=smc.heros[this.h_uuid].slv.toString()
}
}
/** 全局消息逻辑处理 */
// private onHandler(event: string, args: any) {

View File

@@ -23,7 +23,7 @@ export class CardControllerComp extends CCComp {
touch_time:number = 0
in_touch:boolean = false
bbg:any=null
bbg_y:number=60
bbg_y:number=40
bbg_x:any=[-300,-150,0,150,300]
protected onLoad(): void {
this.bbg=this.node.getChildByName("bar").getChildByName("bbg")

View File

@@ -55,7 +55,7 @@ export class HeroHomeComp extends CCComp {
sprite.spriteFrame = atlas.getSpriteFrame(this.hero.path);
});
resources.load(sk_path, SpriteAtlas, (err: any, atlas) => {
const sprite = sk_node.getChildByName("skicon").getChildByName("icon").getComponent(Sprite);
const sprite = sk_node.getChildByName("skicon").getChildByName("Mask").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(skill.path);
});
sk_node.getChildByName("name").getComponent(Label).string = skill.name;
@@ -75,13 +75,12 @@ export class HeroHomeComp extends CCComp {
let attr = this.node.getChildByName("attr");
let attr2 = this.node.getChildByName("attr2").getChildByName("other");
this.node.getChildByName("name").getChildByName("lv").getComponent(Label).string = this.role.lv.toString()+"级";
if( this.role.slv>=1) {slv_node.getChildByName("s1").active=true}else{slv_node.getChildByName("s1").active=false};
if( this.role.slv>=2) {slv_node.getChildByName("s2").active=true}else{slv_node.getChildByName("s2").active=false};
if( this.role.slv>=3) {slv_node.getChildByName("s3").active=true}else{slv_node.getChildByName("s3").active=false};
if( this.role.slv>=4) {slv_node.getChildByName("s4").active=true}else{slv_node.getChildByName("s4").active=false};
if( this.role.slv>=5) {slv_node.getChildByName("s5").active=true}else{slv_node.getChildByName("s5").active=false};
if( this.role.slv==0) {
slv_node.getChildByName("slv").active=false
}else{
slv_node.getChildByName("slv").active=true
slv_node.getChildByName("slv").getComponent(Label).string = this.role.slv.toString();
};
// lvup.getChildByName("gold").getChildByName("need").getComponent(Label).string = (UpGold.LvUp*this.role.lv).toString()
lvup.getChildByName("item").getChildByName("need").getComponent(Label).string = ((LvUp[0]+this.hero.lvexp)*this.role.lv).toString()