This commit is contained in:
2024-12-18 22:40:58 +08:00
16 changed files with 11112 additions and 7725 deletions

View File

@@ -40,13 +40,10 @@
"__id__": 86
},
{
"__id__": 128
"__id__": 137
},
{
"__id__": 164
},
{
"__id__": 200
"__id__": 173
}
],
"_active": true,
@@ -1969,16 +1966,19 @@
},
{
"__id__": 119
},
{
"__id__": 125
}
],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 134
}
],
"_prefab": {
"__id__": 127
"__id__": 136
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2828,6 +2828,136 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 86
},
"_prefab": {
"__id__": 126
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 125
},
"asset": {
"__uuid__": "7c02fdcf-20fe-40f6-a8a5-f5a8c1460861",
"__expectedType__": "cc.Prefab"
},
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
"instance": {
"__id__": 127
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "f7c2vmFPZIebC2U4G7VU8s",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 128
},
{
"__id__": 130
},
{
"__id__": 131
},
{
"__id__": 132
},
{
"__id__": 133
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 129
},
"propertyPath": [
"_name"
],
"value": "schip"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"c46/YsCPVOJYA4mWEpNYRx"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 129
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 202.41100000000006,
"y": 38.43100000000004,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 129
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 129
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 129
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 0.4,
"y": 0.4,
"z": 1
}
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -2838,7 +2968,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 126
"__id__": 135
},
"_contentSize": {
"__type__": "cc.Size",
@@ -2879,32 +3009,32 @@
},
"_children": [
{
"__id__": 129
"__id__": 138
},
{
"__id__": 135
"__id__": 144
},
{
"__id__": 141
"__id__": 150
},
{
"__id__": 147
"__id__": 156
},
{
"__id__": 153
"__id__": 162
}
],
"_active": true,
"_components": [
{
"__id__": 159
"__id__": 168
},
{
"__id__": 161
"__id__": 170
}
],
"_prefab": {
"__id__": 163
"__id__": 172
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2941,20 +3071,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 128
"__id__": 137
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 130
"__id__": 139
},
{
"__id__": 132
"__id__": 141
}
],
"_prefab": {
"__id__": 134
"__id__": 143
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2991,11 +3121,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 129
"__id__": 138
},
"_enabled": true,
"__prefab": {
"__id__": 131
"__id__": 140
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3019,11 +3149,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 129
"__id__": 138
},
"_enabled": true,
"__prefab": {
"__id__": 133
"__id__": 142
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3077,20 +3207,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 128
"__id__": 137
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 136
"__id__": 145
},
{
"__id__": 138
"__id__": 147
}
],
"_prefab": {
"__id__": 140
"__id__": 149
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3127,11 +3257,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 135
"__id__": 144
},
"_enabled": true,
"__prefab": {
"__id__": 137
"__id__": 146
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3155,11 +3285,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 135
"__id__": 144
},
"_enabled": true,
"__prefab": {
"__id__": 139
"__id__": 148
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3213,20 +3343,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 128
"__id__": 137
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 142
"__id__": 151
},
{
"__id__": 144
"__id__": 153
}
],
"_prefab": {
"__id__": 146
"__id__": 155
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3263,11 +3393,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 141
"__id__": 150
},
"_enabled": true,
"__prefab": {
"__id__": 143
"__id__": 152
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3291,11 +3421,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 141
"__id__": 150
},
"_enabled": true,
"__prefab": {
"__id__": 145
"__id__": 154
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3349,20 +3479,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 128
"__id__": 137
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 148
"__id__": 157
},
{
"__id__": 150
"__id__": 159
}
],
"_prefab": {
"__id__": 152
"__id__": 161
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3399,11 +3529,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 147
"__id__": 156
},
"_enabled": true,
"__prefab": {
"__id__": 149
"__id__": 158
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3427,11 +3557,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 147
"__id__": 156
},
"_enabled": true,
"__prefab": {
"__id__": 151
"__id__": 160
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3485,20 +3615,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 128
"__id__": 137
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 154
"__id__": 163
},
{
"__id__": 156
"__id__": 165
}
],
"_prefab": {
"__id__": 158
"__id__": 167
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3535,11 +3665,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 153
"__id__": 162
},
"_enabled": true,
"__prefab": {
"__id__": 155
"__id__": 164
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3563,11 +3693,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 153
"__id__": 162
},
"_enabled": true,
"__prefab": {
"__id__": 157
"__id__": 166
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3621,11 +3751,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 128
"__id__": 137
},
"_enabled": true,
"__prefab": {
"__id__": 160
"__id__": 169
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3649,11 +3779,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 128
"__id__": 137
},
"_enabled": true,
"__prefab": {
"__id__": 162
"__id__": 171
},
"_resizeMode": 2,
"_layoutType": 3,
@@ -3704,32 +3834,32 @@
},
"_children": [
{
"__id__": 165
"__id__": 174
},
{
"__id__": 171
"__id__": 180
},
{
"__id__": 177
"__id__": 186
},
{
"__id__": 183
"__id__": 192
},
{
"__id__": 189
"__id__": 198
}
],
"_active": true,
"_components": [
{
"__id__": 195
"__id__": 204
},
{
"__id__": 197
"__id__": 206
}
],
"_prefab": {
"__id__": 199
"__id__": 208
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3766,20 +3896,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 164
"__id__": 173
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 166
"__id__": 175
},
{
"__id__": 168
"__id__": 177
}
],
"_prefab": {
"__id__": 170
"__id__": 179
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3816,11 +3946,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 165
"__id__": 174
},
"_enabled": true,
"__prefab": {
"__id__": 167
"__id__": 176
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3844,11 +3974,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 165
"__id__": 174
},
"_enabled": true,
"__prefab": {
"__id__": 169
"__id__": 178
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3902,20 +4032,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 164
"__id__": 173
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 172
"__id__": 181
},
{
"__id__": 174
"__id__": 183
}
],
"_prefab": {
"__id__": 176
"__id__": 185
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3952,11 +4082,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 171
"__id__": 180
},
"_enabled": true,
"__prefab": {
"__id__": 173
"__id__": 182
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3980,11 +4110,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 171
"__id__": 180
},
"_enabled": true,
"__prefab": {
"__id__": 175
"__id__": 184
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -4038,20 +4168,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 164
"__id__": 173
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 178
"__id__": 187
},
{
"__id__": 180
"__id__": 189
}
],
"_prefab": {
"__id__": 182
"__id__": 191
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -4088,11 +4218,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 177
"__id__": 186
},
"_enabled": true,
"__prefab": {
"__id__": 179
"__id__": 188
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4116,11 +4246,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 177
"__id__": 186
},
"_enabled": true,
"__prefab": {
"__id__": 181
"__id__": 190
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -4174,20 +4304,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 164
"__id__": 173
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 184
"__id__": 193
},
{
"__id__": 186
"__id__": 195
}
],
"_prefab": {
"__id__": 188
"__id__": 197
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -4224,11 +4354,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 183
"__id__": 192
},
"_enabled": true,
"__prefab": {
"__id__": 185
"__id__": 194
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4252,11 +4382,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 183
"__id__": 192
},
"_enabled": true,
"__prefab": {
"__id__": 187
"__id__": 196
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -4310,20 +4440,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 164
"__id__": 173
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 190
"__id__": 199
},
{
"__id__": 192
"__id__": 201
}
],
"_prefab": {
"__id__": 194
"__id__": 203
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -4360,11 +4490,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 189
"__id__": 198
},
"_enabled": true,
"__prefab": {
"__id__": 191
"__id__": 200
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4388,11 +4518,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 189
"__id__": 198
},
"_enabled": true,
"__prefab": {
"__id__": 193
"__id__": 202
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -4446,11 +4576,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 164
"__id__": 173
},
"_enabled": true,
"__prefab": {
"__id__": 196
"__id__": 205
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4474,11 +4604,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 164
"__id__": 173
},
"_enabled": true,
"__prefab": {
"__id__": 198
"__id__": 207
},
"_resizeMode": 2,
"_layoutType": 3,
@@ -4519,136 +4649,6 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 201
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 200
},
"asset": {
"__uuid__": "7c02fdcf-20fe-40f6-a8a5-f5a8c1460861",
"__expectedType__": "cc.Prefab"
},
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
"instance": {
"__id__": 202
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "f7c2vmFPZIebC2U4G7VU8s",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 203
},
{
"__id__": 205
},
{
"__id__": 206
},
{
"__id__": 207
},
{
"__id__": 208
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 204
},
"propertyPath": [
"_name"
],
"value": "schip"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"c46/YsCPVOJYA4mWEpNYRx"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 204
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 202.41100000000006,
"y": 38.43100000000004,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 204
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 204
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 204
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 0.4,
"y": 0.4,
"z": 1
}
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -4708,7 +4708,7 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 200
"__id__": 125
},
{
"__id__": 88

View File

@@ -22,26 +22,23 @@
"__id__": 2
},
{
"__id__": 8
"__id__": 11
},
{
"__id__": 14
},
{
"__id__": 34
"__id__": 31
}
],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 37
},
{
"__id__": 42
"__id__": 39
}
],
"_prefab": {
"__id__": 44
"__id__": 41
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -74,7 +71,7 @@
},
{
"__type__": "cc.Node",
"_name": "bbg",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -88,10 +85,13 @@
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 7
"__id__": 10
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -148,7 +148,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5e8zdCBrBHypnLh5DouDGG"
"fileId": "cbSBQ5CChPKZil6CARGTEu"
},
{
"__type__": "cc.Sprite",
@@ -172,142 +172,6 @@
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@419a0",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0cTcfsagZCjrGxFYSunowU"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "15H+mphFZEEK/v++ITU8Fs",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"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": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"_contentSize": {
"__type__": "cc.Size",
"width": 110,
"height": 110
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cbSBQ5CChPKZil6CARGTEu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_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@54ac8",
"__expectedType__": "cc.SpriteFrame"
@@ -331,6 +195,78 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "83GQNfdWBG0Is4cpe8aO1j"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"clickEvents": [
{
"__id__": 9
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.95,
"_target": {
"__id__": 1
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "7bW04uuKRPuaXisxIaJReE"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "dc8e3zoHO1Bq7v2cjEJd0Za",
"handler": "show_info",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -354,31 +290,31 @@
},
"_children": [
{
"__id__": 15
"__id__": 12
},
{
"__id__": 21
"__id__": 18
}
],
"_active": true,
"_components": [
{
"__id__": 27
"__id__": 24
},
{
"__id__": 29
"__id__": 26
},
{
"__id__": 31
"__id__": 28
}
],
"_prefab": {
"__id__": 33
"__id__": 30
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 3.047,
"y": 0,
"z": 0
},
"_lrot": {
@@ -410,20 +346,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 14
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
"__id__": 13
},
{
"__id__": 18
"__id__": 15
}
],
"_prefab": {
"__id__": 20
"__id__": 17
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -460,11 +396,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 15
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 17
"__id__": 14
},
"_contentSize": {
"__type__": "cc.Size",
@@ -488,11 +424,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 15
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 19
"__id__": 16
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -546,20 +482,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 14
"__id__": 11
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 22
"__id__": 19
},
{
"__id__": 24
"__id__": 21
}
],
"_prefab": {
"__id__": 26
"__id__": 23
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -596,11 +532,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 21
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 23
"__id__": 20
},
"_contentSize": {
"__type__": "cc.Size",
@@ -624,11 +560,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 21
"__id__": 18
},
"_enabled": true,
"__prefab": {
"__id__": 25
"__id__": 22
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -682,11 +618,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 14
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 28
"__id__": 25
},
"_contentSize": {
"__type__": "cc.Size",
@@ -710,11 +646,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 14
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 30
"__id__": 27
},
"_type": 3,
"_inverted": false,
@@ -732,11 +668,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 14
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 32
"__id__": 29
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -796,14 +732,14 @@
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 32
},
{
"__id__": 37
"__id__": 34
}
],
"_prefab": {
"__id__": 39
"__id__": 36
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -840,11 +776,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
"__id__": 31
},
"_enabled": true,
"__prefab": {
"__id__": 36
"__id__": 33
},
"_contentSize": {
"__type__": "cc.Size",
@@ -868,11 +804,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
"__id__": 31
},
"_enabled": true,
"__prefab": {
"__id__": 38
"__id__": 35
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -953,7 +889,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 41
"__id__": 38
},
"_contentSize": {
"__type__": "cc.Size",
@@ -981,7 +917,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 43
"__id__": 40
},
"_id": ""
},

View File

@@ -22,26 +22,23 @@
"__id__": 2
},
{
"__id__": 8
"__id__": 11
},
{
"__id__": 14
},
{
"__id__": 28
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 34
"__id__": 31
},
{
"__id__": 36
"__id__": 33
}
],
"_prefab": {
"__id__": 38
"__id__": 35
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -74,24 +71,27 @@
},
{
"__type__": "cc.Node",
"_name": "bbg",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 7
"__id__": 10
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -148,7 +148,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4ffgX5nDlFDq3zfbp+wi1W"
"fileId": "7b1AqTRD5ME64Esj6ng1dt"
},
{
"__type__": "cc.Sprite",
@@ -172,142 +172,6 @@
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@62e5d",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "deARvGPLRLormNTbfHlb+a"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "54S7xGEnxEDb/6X/1HXrmy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"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": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"_contentSize": {
"__type__": "cc.Size",
"width": 110,
"height": 110
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "7b1AqTRD5ME64Esj6ng1dt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_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@54ac8",
"__expectedType__": "cc.SpriteFrame"
@@ -331,6 +195,78 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "8bAtx1erBCMpa5Gjs+EpnN"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"clickEvents": [
{
"__id__": 9
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.95,
"_target": {
"__id__": 1
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "65hG8BEaxD1bE3SHtDU2rs"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "f653eE60XxPYoCKHpWk31Mn",
"handler": "show_info",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -354,23 +290,23 @@
},
"_children": [
{
"__id__": 15
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 18
},
{
"__id__": 23
"__id__": 20
},
{
"__id__": 25
"__id__": 22
}
],
"_prefab": {
"__id__": 27
"__id__": 24
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -407,20 +343,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 14
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
"__id__": 13
},
{
"__id__": 18
"__id__": 15
}
],
"_prefab": {
"__id__": 20
"__id__": 17
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -457,11 +393,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 15
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 17
"__id__": 14
},
"_contentSize": {
"__type__": "cc.Size",
@@ -485,11 +421,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 15
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 19
"__id__": 16
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -543,11 +479,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 14
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 22
"__id__": 19
},
"_contentSize": {
"__type__": "cc.Size",
@@ -571,11 +507,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 14
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 24
"__id__": 21
},
"_type": 3,
"_inverted": false,
@@ -593,11 +529,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 14
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 26
"__id__": 23
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -657,14 +593,14 @@
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 26
},
{
"__id__": 31
"__id__": 28
}
],
"_prefab": {
"__id__": 33
"__id__": 30
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -701,11 +637,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 28
"__id__": 25
},
"_enabled": true,
"__prefab": {
"__id__": 30
"__id__": 27
},
"_contentSize": {
"__type__": "cc.Size",
@@ -729,11 +665,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 28
"__id__": 25
},
"_enabled": true,
"__prefab": {
"__id__": 32
"__id__": 29
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -814,7 +750,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 35
"__id__": 32
},
"_contentSize": {
"__type__": "cc.Size",
@@ -842,7 +778,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 37
"__id__": 34
},
"_id": ""
},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,8 @@
import { _decorator, Component, Label, Node, resources, Sprite, SpriteAtlas } from 'cc';
import { HeroInfo } from '../common/config/heroSet';
import { oops } from '../../../../extensions/oops-plugin-framework/assets/core/Oops';
import { UIID } from '../common/config/GameUIConfig';
import { Items } from '../common/config/Items';
const { ccclass, property } = _decorator;
@ccclass('HChipComp')
@@ -14,12 +17,17 @@ export class HChipComp extends Component {
update(deltaTime: number) {
}
show_info(){
if(this.node.parent.name=="reward") return
oops.gui.open(UIID.ItemInfo, {uuid:this.h_uuid,type:2});
}
update_data(h_uuid:number,num:number=0){
update_data(uuid:number,num:number=0){
this.h_uuid = uuid;
var icon_path = "game/heros/herois"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("hero").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[h_uuid].path);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[uuid].path);
});
if(num > 0){
this.node.getChildByName("num").getComponent(Label).string = num.toString();

View File

@@ -1,6 +1,9 @@
import { _decorator, Component, Label, Node, resources, Sprite, SpriteAtlas } from 'cc';
import { HeroInfo } from '../common/config/heroSet';
import { SkillSet } from '../common/config/SkillSet';
import { oops } from '../../../../extensions/oops-plugin-framework/assets/core/Oops';
import { UIID } from '../common/config/GameUIConfig';
import { Items } from '../common/config/Items';
const { ccclass, property } = _decorator;
@ccclass('SChipComp')
@@ -15,9 +18,13 @@ export class SChipComp extends Component {
update(deltaTime: number) {
}
show_info(){
if(this.node.parent.name=="reward") return
oops.gui.open(UIID.ItemInfo, {uuid:this.h_uuid,type:1});
}
update_data(uuid:number,num:number=0){
this.h_uuid = uuid;
if(num > 0){
this.node.getChildByName("num").getComponent(Label).string = num.toString();
}else{

View File

@@ -50,7 +50,7 @@ export class CardControllerComp extends CCComp {
this.node.getChildByName("hero_home").active = false;
this.node.getChildByName("shop_home").active = false;
this.node.getChildByName("battle_home").active = false;
this.node.getChildByName("skill_home").active = false;
this.node.getChildByName("luck_home").active = false;
this.node.getChildByName("mission").active = false;
}
@@ -62,7 +62,7 @@ export class CardControllerComp extends CCComp {
this.node.getChildByName("mission_home").active = false
this.node.getChildByName("shop_home").active = false
this.node.getChildByName("battle_home").active = false
this.node.getChildByName("skill_home").active = false
this.node.getChildByName("luck_home").active = false
switch(args){
case "hero":
this.node.getChildByName("hero_home").active = true
@@ -76,8 +76,8 @@ export class CardControllerComp extends CCComp {
// this.node.getChildByName("battle_home").active = true
// this.bbg.setPosition(v3(this.bbg_x[4],this.bbg_y))
break;
case "skill":
this.node.getChildByName("skill_home").active = true
case "luck":
this.node.getChildByName("luck_home").active = true
this.bbg.setPosition(v3(this.bbg_x[3],this.bbg_y))
break;
case "home":

View File

@@ -178,7 +178,7 @@ export class HeroHomeComp extends CCComp {
this.update_data()
}
item_show(e:any,val:any){
oops.gui.open(UIID.ItemInfo, Items[val]);
oops.gui.open(UIID.ItemInfo, {uuid:val,type:0});
}
reset() {
this.node.destroy();

View File

@@ -16,6 +16,9 @@ export class Item extends ecs.Entity {
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.getChildByName("num").getComponent(Label).string = num.toString();
if(num==0){
node.getChildByName("num").getComponent(Label).string ="";
}
let url = "gui/items";
let pathName= Items[uuid].path;

View File

@@ -18,7 +18,7 @@ export class ItemComp extends CCComp {
}
show_info(){
oops.gui.open(UIID.ItemInfo, Items[this.i_uuid]);
oops.gui.open(UIID.ItemInfo, {uuid:this.i_uuid,type:0});
}
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */

View File

@@ -4,6 +4,8 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
import { UIID } from "../common/config/GameUIConfig";
import { Items } from "../common/config/Items";
import { SkillSet } from "../common/config/SkillSet";
import { HeroInfo, HeroSet } from "../common/config/heroSet";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@@ -11,33 +13,63 @@ const { ccclass, property } = _decorator;
@ecs.register('ItemInfo', false)
export class ItemInfoComp extends CCComp {
onAdded(args: any) {
this.node.getChildByName("name").getComponent(Label).string=args.name
this.node.getChildByName("info").getComponent(Label).string=args.info
let url = "gui/items";
let pathName= args.path;
this.node.getChildByName("lv1").active = false;
this.node.getChildByName("lv2").active = false;
this.node.getChildByName("lv3").active = false;
this.node.getChildByName("lv4").active = false;
this.node.getChildByName("item").active = false;
this.node.getChildByName("skill").active = false;
this.node.getChildByName("hero").active = false;
if(args.type==0){
this.node.getChildByName("item").active = true;
this.node.getChildByName("name").getComponent(Label).string=Items[args.uuid].name
this.node.getChildByName("info").getComponent(Label).string=Items[args.uuid].info
let url = "gui/items";
let pathName= Items[args.uuid].path;
this.node.getChildByName("item").getChildByName("lv1").active = false;
this.node.getChildByName("item").getChildByName("lv2").active = false;
this.node.getChildByName("item").getChildByName("lv3").active = false;
this.node.getChildByName("item").getChildByName("lv4").active = false;
switch(Items[args.uuid].lv){
case 1:
this.node.getChildByName("lv1").active = true;
break;
case 2:
this.node.getChildByName("lv2").active = true;
break;
case 3:
this.node.getChildByName("lv3").active = true;
break;
case 4:
this.node.getChildByName("lv4").active = true;
break;
switch(Items[args.uuid].lv){
case 1:
this.node.getChildByName("item").getChildByName("lv1").active = true;
break;
case 2:
this.node.getChildByName("item").getChildByName("lv2").active = true;
break;
case 3:
this.node.getChildByName("item").getChildByName("lv3").active = true;
break;
case 4:
this.node.getChildByName("item").getChildByName("lv4").active = true;
break;
}
resources.load(url, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("item").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(pathName);
});
}
resources.load(url, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(pathName);
});
if(args.type==1){ //技能碎片
this.node.getChildByName("skill").active = true;
this.node.getChildByName("name").getComponent(Label).string=SkillSet[args.uuid].name+" 碎片"
this.node.getChildByName("info").getComponent(Label).string="「"+SkillSet[args.uuid].name+"」碎片,用于技能升星"
var icon_path = "game/skills/skill_icon"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("skill").getChildByName("skill").getChildByName("icon").getComponent(Sprite);
// console.log("update_data",atlas,sprite)
sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[args.uuid].path);
});
}
if(args.type==2){ //英雄碎片
this.node.getChildByName("hero").active = true
this.node.getChildByName("name").getComponent(Label).string=HeroInfo[args.uuid].name+" 碎片"
this.node.getChildByName("info").getComponent(Label).string="「"+HeroInfo[args.uuid].name+"」碎片,用于英雄升星"
var icon_path = "game/heros/herois"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("hero").getChildByName("hero").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[args.uuid].path);
});
}
}
private onTouchEnd(event: EventTouch) {

View File

@@ -22,21 +22,27 @@ export class MSCardComp extends CCComp {
/** 视图层逻辑代码分离演示 */
start() {
oops.message.on(GameEvent.MSSelected, this.update_select, this);
this.mhc=this.node.parent.parent.parent.parent.getComponent(MissionHomeComp)
console.log("MSCardComp start");
this.change()
}
change_set(){
this.is_update=!this.is_update
this.is_select=!this.is_select
this.change()
}
change(){
if(this.is_update){
this.node.getChildByName("update").active=true
}else{
this.node.getChildByName("update").active=false
}
if(this.is_select){
this.node.getChildByName("set").active=true
this.update_select()
}else{
this.node.getChildByName("set").active=false
}
}
update_data(){
if(smc.skills[this.s_uuid].slv>=1) {this.node.getChildByName("slv").getChildByName("s1").active=true} else {this.node.getChildByName("slv").getChildByName("s1").active=false};
@@ -45,7 +51,7 @@ export class MSCardComp extends CCComp {
if(smc.skills[this.s_uuid].slv>=4) {this.node.getChildByName("slv").getChildByName("s4").active=true} else {this.node.getChildByName("slv").getChildByName("s4").active=false};
if(smc.skills[this.s_uuid].slv>=5) {this.node.getChildByName("slv").getChildByName("s5").active=true} else {this.node.getChildByName("slv").getChildByName("s5").active=false};
this.node.getChildByName("update").getChildByName("cost").getComponent(Label).string =smc.skills[this.s_uuid].num.toString()+ " / "+(SkillSet[this.s_uuid].upcost*(1+smc.skills[this.s_uuid].slv)).toString()
let sc= this.node.getChildByName("schip").getComponent(SChipComp)
let sc= this.node.getChildByName("update").getChildByName("schip").getComponent(SChipComp)
sc.update_data(this.s_uuid,0)
}
select(){

View File

@@ -11,6 +11,7 @@ import { MSklist, SkillSet } from "../common/config/SkillSet";
import { MSCard } from "./MSCard";
import { CardControllerComp } from "./CardController";
import { MissionComp } from "./MissionComp";
import { MSCardComp } from "./MSCardComp";
const { ccclass, property } = _decorator;
@@ -145,6 +146,22 @@ export class MissionHomeComp extends CCComp {
}
hide_skills(){
this.node.getChildByName("skills").setPosition(0,-800)
let mscards:any= ecs.query(ecs.allOf(MSCardComp));
for(let i=0;i<mscards.length;i++){
mscards[i].MSCardComp.is_select=true
mscards[i].MSCardComp.is_update=false
mscards[i].MSCardComp.change()
}
this.node.getChildByName("skills").getChildByName("noset").active=false
this.node.getChildByName("skills").getChildByName("set").active=true
}
set_skills(){
let mscards:any= ecs.query(ecs.allOf(MSCardComp));
for(let i=0;i<mscards.length;i++){
mscards[i].MSCardComp.change_set()
}
this.node.getChildByName("skills").getChildByName("set").active=!this.node.getChildByName("skills").getChildByName("set").active
this.node.getChildByName("skills").getChildByName("noset").active=!this.node.getChildByName("skills").getChildByName("noset").active
}
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {

View File

@@ -62,7 +62,7 @@ export class ShopHomeComp extends CCComp {
}
item_show(e:any,val:any){
oops.gui.open(UIID.ItemInfo, Items[val]);
oops.gui.open(UIID.ItemInfo, {uuid:val,type:0});
}
get_free(){
console.log("免费领取")

View File

@@ -104,7 +104,6 @@ export class VictoryComp extends CCComp {
item_show(e:any,val:any){
console.log("item_show",val)
oops.gui.open(UIID.ItemInfo, Items[val]);
}
protected onDestroy(): void {
console.log("释放胜利界面");