商品页初步完成
This commit is contained in:
@@ -191,7 +191,7 @@
|
|||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"_spriteFrame": {
|
"_spriteFrame": {
|
||||||
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@b03fe",
|
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@eeece",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
"_type": 1,
|
"_type": 1,
|
||||||
|
|||||||
@@ -182,9 +182,9 @@
|
|||||||
"_dstBlendFactor": 4,
|
"_dstBlendFactor": 4,
|
||||||
"_color": {
|
"_color": {
|
||||||
"__type__": "cc.Color",
|
"__type__": "cc.Color",
|
||||||
"r": 29,
|
"r": 252,
|
||||||
"g": 180,
|
"g": 190,
|
||||||
"b": 252,
|
"b": 29,
|
||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"_spriteFrame": {
|
"_spriteFrame": {
|
||||||
|
|||||||
@@ -46,23 +46,23 @@
|
|||||||
"__id__": 50
|
"__id__": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 65
|
"__id__": 73
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 71
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 77
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 79
|
"__id__": 79
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 85
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 87
|
||||||
|
}
|
||||||
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 81
|
"__id__": 89
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
"_lscale": {
|
"_lscale": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 1,
|
"x": 1,
|
||||||
"y": -1,
|
"y": 1,
|
||||||
"z": 1
|
"z": 1
|
||||||
},
|
},
|
||||||
"_mobility": 0,
|
"_mobility": 0,
|
||||||
@@ -194,7 +194,7 @@
|
|||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"_spriteFrame": {
|
"_spriteFrame": {
|
||||||
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@b86f8",
|
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@b6f73",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
"_type": 1,
|
"_type": 1,
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -278.1,
|
"x": -278.1,
|
||||||
"y": 169.665,
|
"y": 140.016,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -389,7 +389,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -278.1,
|
"x": -278.1,
|
||||||
"y": 169.665,
|
"y": 140.016,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -525,7 +525,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -278.1,
|
"x": -278.1,
|
||||||
"y": 169.665,
|
"y": 140.016,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -661,7 +661,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -278.1,
|
"x": -278.1,
|
||||||
"y": 169.665,
|
"y": 140.016,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -797,7 +797,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -278.1,
|
"x": -278.1,
|
||||||
"y": 169.665,
|
"y": 140.016,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -933,7 +933,7 @@
|
|||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -278.1,
|
"x": -278.1,
|
||||||
"y": 169.665,
|
"y": 140.016,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -1015,7 +1015,7 @@
|
|||||||
},
|
},
|
||||||
"_type": 0,
|
"_type": 0,
|
||||||
"_fillType": 0,
|
"_fillType": 0,
|
||||||
"_sizeMode": 1,
|
"_sizeMode": 0,
|
||||||
"_fillCenter": {
|
"_fillCenter": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
@@ -1041,11 +1041,13 @@
|
|||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "8e1IRM125CG58Vuf8pEptA",
|
"fileId": "8e1IRM125CG58Vuf8pEptA",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": null
|
"nestedPrefabInstanceRoots": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Node",
|
"__type__": "cc.Node",
|
||||||
"_name": "line_bg",
|
"_name": "name",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"_parent": {
|
"_parent": {
|
||||||
@@ -1066,8 +1068,8 @@
|
|||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": -217.488,
|
||||||
"y": -4.997,
|
"y": 145.552,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -1107,22 +1109,22 @@
|
|||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 650,
|
"width": 300,
|
||||||
"height": 240
|
"height": 50.4
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
"x": 0.5,
|
"x": 0,
|
||||||
"y": 0.5
|
"y": 0.5
|
||||||
},
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.CompPrefabInfo",
|
"__type__": "cc.CompPrefabInfo",
|
||||||
"fileId": "aem+OlURRDSYDvjYvcBvbZ"
|
"fileId": "b752yskN5DlYU2lpZFtyEj"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Sprite",
|
"__type__": "cc.Label",
|
||||||
"_name": "",
|
"_name": "",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
@@ -1143,28 +1145,51 @@
|
|||||||
"b": 255,
|
"b": 255,
|
||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"_spriteFrame": {
|
"_string": "这是物品名称",
|
||||||
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@5304c",
|
"_horizontalAlign": 0,
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"_verticalAlign": 1,
|
||||||
|
"_actualFontSize": 41,
|
||||||
|
"_fontSize": 40,
|
||||||
|
"_fontFamily": "Arial",
|
||||||
|
"_lineHeight": 40,
|
||||||
|
"_overflow": 2,
|
||||||
|
"_enableWrapText": true,
|
||||||
|
"_font": null,
|
||||||
|
"_isSystemFontUsed": true,
|
||||||
|
"_spacingX": 0,
|
||||||
|
"_isItalic": false,
|
||||||
|
"_isBold": false,
|
||||||
|
"_isUnderline": false,
|
||||||
|
"_underlineHeight": 2,
|
||||||
|
"_cacheMode": 0,
|
||||||
|
"_enableOutline": true,
|
||||||
|
"_outlineColor": {
|
||||||
|
"__type__": "cc.Color",
|
||||||
|
"r": 0,
|
||||||
|
"g": 0,
|
||||||
|
"b": 0,
|
||||||
|
"a": 255
|
||||||
},
|
},
|
||||||
"_type": 1,
|
"_outlineWidth": 2,
|
||||||
"_fillType": 0,
|
"_enableShadow": true,
|
||||||
"_sizeMode": 0,
|
"_shadowColor": {
|
||||||
"_fillCenter": {
|
"__type__": "cc.Color",
|
||||||
|
"r": 0,
|
||||||
|
"g": 0,
|
||||||
|
"b": 0,
|
||||||
|
"a": 255
|
||||||
|
},
|
||||||
|
"_shadowOffset": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
"x": 0,
|
"x": 1,
|
||||||
"y": 0
|
"y": -2
|
||||||
},
|
},
|
||||||
"_fillStart": 0,
|
"_shadowBlur": 2,
|
||||||
"_fillRange": 0,
|
|
||||||
"_isTrimmedMode": true,
|
|
||||||
"_useGrayscale": false,
|
|
||||||
"_atlas": null,
|
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.CompPrefabInfo",
|
"__type__": "cc.CompPrefabInfo",
|
||||||
"fileId": "aaySvXHh5PSp61seqp9+Fw"
|
"fileId": "19K9PXhdtDHKAMcNTzgfkl"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
@@ -1174,7 +1199,7 @@
|
|||||||
"asset": {
|
"asset": {
|
||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "1bV+JKCQ5AXrvjnNMMCBAE",
|
"fileId": "68i8Q3rMVMtqf0lqKFjqRw",
|
||||||
"instance": null,
|
"instance": null,
|
||||||
"targetOverrides": null,
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": null
|
"nestedPrefabInstanceRoots": null
|
||||||
@@ -1190,22 +1215,22 @@
|
|||||||
"_children": [
|
"_children": [
|
||||||
{
|
{
|
||||||
"__id__": 51
|
"__id__": 51
|
||||||
}
|
|
||||||
],
|
|
||||||
"_active": true,
|
|
||||||
"_components": [
|
|
||||||
{
|
|
||||||
"__id__": 57
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"__id__": 59
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 61
|
"__id__": 61
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"_active": true,
|
||||||
|
"_components": [
|
||||||
|
{
|
||||||
|
"__id__": 67
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 69
|
||||||
|
}
|
||||||
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 64
|
"__id__": 72
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
@@ -1236,6 +1261,142 @@
|
|||||||
},
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 50
|
||||||
|
},
|
||||||
|
"_prefab": {
|
||||||
|
"__id__": 52
|
||||||
|
},
|
||||||
|
"__editorExtras__": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInfo",
|
||||||
|
"root": {
|
||||||
|
"__id__": 51
|
||||||
|
},
|
||||||
|
"asset": {
|
||||||
|
"__uuid__": "915a4408-90ea-4c30-9974-05d96c0c27f1",
|
||||||
|
"__expectedType__": "cc.Prefab"
|
||||||
|
},
|
||||||
|
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
|
||||||
|
"instance": {
|
||||||
|
"__id__": 53
|
||||||
|
},
|
||||||
|
"targetOverrides": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInstance",
|
||||||
|
"fileId": "c85LGBJr1KA56M4lsVLZlu",
|
||||||
|
"prefabRootNode": {
|
||||||
|
"__id__": 1
|
||||||
|
},
|
||||||
|
"mountedChildren": [],
|
||||||
|
"mountedComponents": [],
|
||||||
|
"propertyOverrides": [
|
||||||
|
{
|
||||||
|
"__id__": 54
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 56
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 57
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 58
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 59
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"removedComponents": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 55
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_name"
|
||||||
|
],
|
||||||
|
"value": "btn1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"c46/YsCPVOJYA4mWEpNYRx"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 55
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_lpos"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 55
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_lrot"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 55
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_euler"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 60
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_lscale"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 1.2,
|
||||||
|
"y": 1.2,
|
||||||
|
"z": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"5bn06HEQlJbqIT+pV5z5Z9"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Node",
|
"__type__": "cc.Node",
|
||||||
"_name": "bt",
|
"_name": "bt",
|
||||||
@@ -1248,19 +1409,19 @@
|
|||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 52
|
"__id__": 62
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 54
|
"__id__": 64
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 56
|
"__id__": 66
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 5,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -1292,11 +1453,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 51
|
"__id__": 61
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 53
|
"__id__": 63
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -1320,11 +1481,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 51
|
"__id__": 61
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 55
|
"__id__": 65
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -1405,7 +1566,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 58
|
"__id__": 68
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -1423,51 +1584,6 @@
|
|||||||
"__type__": "cc.CompPrefabInfo",
|
"__type__": "cc.CompPrefabInfo",
|
||||||
"fileId": "44+3U9Mv5I2IM2SJub/c3z"
|
"fileId": "44+3U9Mv5I2IM2SJub/c3z"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"__type__": "cc.Sprite",
|
|
||||||
"_name": "",
|
|
||||||
"_objFlags": 0,
|
|
||||||
"__editorExtras__": {},
|
|
||||||
"node": {
|
|
||||||
"__id__": 50
|
|
||||||
},
|
|
||||||
"_enabled": true,
|
|
||||||
"__prefab": {
|
|
||||||
"__id__": 60
|
|
||||||
},
|
|
||||||
"_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@b2a40",
|
|
||||||
"__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": "1fx6jf+lBLOJFx5Wg6VLXW"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"__type__": "cc.Button",
|
"__type__": "cc.Button",
|
||||||
"_name": "",
|
"_name": "",
|
||||||
@@ -1478,15 +1594,15 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 62
|
"__id__": 70
|
||||||
},
|
},
|
||||||
"clickEvents": [
|
"clickEvents": [
|
||||||
{
|
{
|
||||||
"__id__": 63
|
"__id__": 71
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_interactable": true,
|
"_interactable": true,
|
||||||
"_transition": 0,
|
"_transition": 3,
|
||||||
"_normalColor": {
|
"_normalColor": {
|
||||||
"__type__": "cc.Color",
|
"__type__": "cc.Color",
|
||||||
"r": 255,
|
"r": 255,
|
||||||
@@ -1553,7 +1669,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Node",
|
"__type__": "cc.Node",
|
||||||
"_name": "name",
|
"_name": "line_bg",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"_parent": {
|
"_parent": {
|
||||||
@@ -1563,19 +1679,19 @@
|
|||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 66
|
"__id__": 74
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 68
|
"__id__": 76
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 70
|
"__id__": 78
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -217.488,
|
"x": 0,
|
||||||
"y": 175.201,
|
"y": -21.469,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -1607,39 +1723,39 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 65
|
"__id__": 73
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 67
|
"__id__": 75
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 300,
|
"width": 650,
|
||||||
"height": 50.4
|
"height": 200
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
"x": 0,
|
"x": 0.5,
|
||||||
"y": 0.5
|
"y": 0.5
|
||||||
},
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.CompPrefabInfo",
|
"__type__": "cc.CompPrefabInfo",
|
||||||
"fileId": "b752yskN5DlYU2lpZFtyEj"
|
"fileId": "aem+OlURRDSYDvjYvcBvbZ"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Label",
|
"__type__": "cc.Sprite",
|
||||||
"_name": "",
|
"_name": "",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 65
|
"__id__": 73
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 69
|
"__id__": 77
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -1651,51 +1767,28 @@
|
|||||||
"b": 255,
|
"b": 255,
|
||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"_string": "这是物品名称",
|
"_spriteFrame": {
|
||||||
"_horizontalAlign": 0,
|
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@5304c",
|
||||||
"_verticalAlign": 1,
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
"_actualFontSize": 41,
|
|
||||||
"_fontSize": 40,
|
|
||||||
"_fontFamily": "Arial",
|
|
||||||
"_lineHeight": 40,
|
|
||||||
"_overflow": 2,
|
|
||||||
"_enableWrapText": true,
|
|
||||||
"_font": null,
|
|
||||||
"_isSystemFontUsed": true,
|
|
||||||
"_spacingX": 0,
|
|
||||||
"_isItalic": false,
|
|
||||||
"_isBold": false,
|
|
||||||
"_isUnderline": false,
|
|
||||||
"_underlineHeight": 2,
|
|
||||||
"_cacheMode": 0,
|
|
||||||
"_enableOutline": true,
|
|
||||||
"_outlineColor": {
|
|
||||||
"__type__": "cc.Color",
|
|
||||||
"r": 0,
|
|
||||||
"g": 0,
|
|
||||||
"b": 0,
|
|
||||||
"a": 255
|
|
||||||
},
|
},
|
||||||
"_outlineWidth": 2,
|
"_type": 1,
|
||||||
"_enableShadow": true,
|
"_fillType": 0,
|
||||||
"_shadowColor": {
|
"_sizeMode": 0,
|
||||||
"__type__": "cc.Color",
|
"_fillCenter": {
|
||||||
"r": 0,
|
|
||||||
"g": 0,
|
|
||||||
"b": 0,
|
|
||||||
"a": 255
|
|
||||||
},
|
|
||||||
"_shadowOffset": {
|
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
"x": 1,
|
"x": 0,
|
||||||
"y": -2
|
"y": 0
|
||||||
},
|
},
|
||||||
"_shadowBlur": 2,
|
"_fillStart": 0,
|
||||||
|
"_fillRange": 0,
|
||||||
|
"_isTrimmedMode": true,
|
||||||
|
"_useGrayscale": false,
|
||||||
|
"_atlas": null,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.CompPrefabInfo",
|
"__type__": "cc.CompPrefabInfo",
|
||||||
"fileId": "19K9PXhdtDHKAMcNTzgfkl"
|
"fileId": "aaySvXHh5PSp61seqp9+Fw"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
@@ -1705,7 +1798,7 @@
|
|||||||
"asset": {
|
"asset": {
|
||||||
"__id__": 0
|
"__id__": 0
|
||||||
},
|
},
|
||||||
"fileId": "68i8Q3rMVMtqf0lqKFjqRw",
|
"fileId": "1bV+JKCQ5AXrvjnNMMCBAE",
|
||||||
"instance": null,
|
"instance": null,
|
||||||
"targetOverrides": null,
|
"targetOverrides": null,
|
||||||
"nestedPrefabInstanceRoots": null
|
"nestedPrefabInstanceRoots": null
|
||||||
@@ -1722,19 +1815,19 @@
|
|||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 72
|
"__id__": 80
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 74
|
"__id__": 82
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": {
|
"_prefab": {
|
||||||
"__id__": 76
|
"__id__": 84
|
||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": -17.508,
|
"y": -33.98,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
"_lrot": {
|
"_lrot": {
|
||||||
@@ -1766,16 +1859,16 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 71
|
"__id__": 79
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 73
|
"__id__": 81
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 600,
|
"width": 600,
|
||||||
"height": 220
|
"height": 180
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
@@ -1794,11 +1887,11 @@
|
|||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"node": {
|
"node": {
|
||||||
"__id__": 71
|
"__id__": 79
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 75
|
"__id__": 83
|
||||||
},
|
},
|
||||||
"_customMaterial": null,
|
"_customMaterial": null,
|
||||||
"_srcBlendFactor": 2,
|
"_srcBlendFactor": 2,
|
||||||
@@ -1813,7 +1906,7 @@
|
|||||||
"_string": "这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介",
|
"_string": "这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介这是简介",
|
||||||
"_horizontalAlign": 0,
|
"_horizontalAlign": 0,
|
||||||
"_verticalAlign": 0,
|
"_verticalAlign": 0,
|
||||||
"_actualFontSize": 31,
|
"_actualFontSize": 30,
|
||||||
"_fontSize": 30,
|
"_fontSize": 30,
|
||||||
"_fontFamily": "Arial",
|
"_fontFamily": "Arial",
|
||||||
"_lineHeight": 40,
|
"_lineHeight": 40,
|
||||||
@@ -1879,7 +1972,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 78
|
"__id__": 86
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
@@ -1907,7 +2000,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 80
|
"__id__": 88
|
||||||
},
|
},
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
@@ -1925,6 +2018,11 @@
|
|||||||
},
|
},
|
||||||
"fileId": "93EVPcNsBBXpMaJjrmWbVn",
|
"fileId": "93EVPcNsBBXpMaJjrmWbVn",
|
||||||
"instance": null,
|
"instance": null,
|
||||||
"targetOverrides": null
|
"targetOverrides": null,
|
||||||
|
"nestedPrefabInstanceRoots": [
|
||||||
|
{
|
||||||
|
"__id__": 51
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "1.1.50",
|
|
||||||
"importer": "prefab",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "a14709ee-4775-4141-ae49-9f1f4a2b91b8",
|
|
||||||
"files": [
|
|
||||||
".json"
|
|
||||||
],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {
|
|
||||||
"syncNodeName": "shop_home"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -101,7 +101,6 @@ export class SingletonModuleComp extends ecs.Comp {
|
|||||||
gems:0,
|
gems:0,
|
||||||
energy:0,
|
energy:0,
|
||||||
},
|
},
|
||||||
|
|
||||||
items:{
|
items:{
|
||||||
1001:{num:1000,x1:1,x10:0},
|
1001:{num:1000,x1:1,x10:0},
|
||||||
1002:{num:1000,x1:2,x10:0},
|
1002:{num:1000,x1:2,x10:0},
|
||||||
@@ -121,6 +120,10 @@ export class SingletonModuleComp extends ecs.Comp {
|
|||||||
1016:{num:1000,x1:0,x10:0},
|
1016:{num:1000,x1:0,x10:0},
|
||||||
9001:{num:854587,x1:9999,x10:0},
|
9001:{num:854587,x1:9999,x10:0},
|
||||||
},
|
},
|
||||||
|
free:{ cost:0,num:3,buy:3,},
|
||||||
|
goods1:{ cost:2000,num:3,buy:3,},
|
||||||
|
goods2:{ cost:3000,num:4,buy:3,},
|
||||||
|
goods3:{ cost:4000,num:5,buy:3,},
|
||||||
|
|
||||||
};
|
};
|
||||||
vmAdd() {
|
vmAdd() {
|
||||||
|
|||||||
@@ -47,59 +47,46 @@ export class CardControllerComp extends CCComp {
|
|||||||
}
|
}
|
||||||
page_init(){
|
page_init(){
|
||||||
this.node.getChildByName("mission_home").active=true;
|
this.node.getChildByName("mission_home").active=true;
|
||||||
this.node.getChildByName("hero_home").setPosition(v3(1000,this.node.getChildByName("hero_home").position.y))
|
this.node.getChildByName("hero_home").active = false;
|
||||||
this.node.getChildByName("shop_home").setPosition(v3(1000,this.node.getChildByName("shop_home").position.y))
|
this.node.getChildByName("shop_home").active = false;
|
||||||
this.node.getChildByName("battle_home").setPosition(v3(1000,this.node.getChildByName("battle_home").position.y))
|
this.node.getChildByName("battle_home").active = false;
|
||||||
this.node.getChildByName("skill_home").setPosition(v3(1000,this.node.getChildByName("skill_home").position.y))
|
this.node.getChildByName("skill_home").active = false;
|
||||||
|
|
||||||
this.node.getChildByName("mission").active = false;
|
this.node.getChildByName("mission").active = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
bar_change(e:any,args:any){
|
bar_change(e:any,args:any){
|
||||||
console.log("bar_change",args)
|
console.log("bar_change",args)
|
||||||
this.node.getChildByName("mission_home").active=true;
|
|
||||||
this.node.getChildByName("bar").active=true;
|
this.node.getChildByName("bar").active=true;
|
||||||
this.bbg.setPosition(v3(this.bbg_x[2],this.bbg_y))
|
|
||||||
this.node.getChildByName("mission").active = false;
|
this.node.getChildByName("mission").active = false;
|
||||||
this.node.getChildByName("hero_home").setPosition(v3(2000,this.node.getChildByName("hero_home").position.y))
|
this.node.getChildByName("hero_home").active = false
|
||||||
this.node.getChildByName("shop_home").setPosition(v3(2000,this.node.getChildByName("shop_home").position.y))
|
this.node.getChildByName("mission_home").active = false
|
||||||
this.node.getChildByName("battle_home").setPosition(v3(2000,this.node.getChildByName("battle_home").position.y))
|
this.node.getChildByName("shop_home").active = false
|
||||||
this.node.getChildByName("skill_home").setPosition(v3(2000,this.node.getChildByName("skill_home").position.y))
|
this.node.getChildByName("battle_home").active = false
|
||||||
|
this.node.getChildByName("skill_home").active = false
|
||||||
switch(args){
|
switch(args){
|
||||||
case "hero":
|
case "hero":
|
||||||
this.node.getChildByName("hero_home").setPosition(v3(0,this.node.getChildByName("hero_home").position.y))
|
this.node.getChildByName("hero_home").active = true
|
||||||
this.bbg.setPosition(v3(this.bbg_x[1],this.bbg_y))
|
this.bbg.setPosition(v3(this.bbg_x[1],this.bbg_y))
|
||||||
break;
|
break;
|
||||||
case "shop":
|
case "shop":
|
||||||
this.node.getChildByName("shop_home").setPosition(v3(0,this.node.getChildByName("shop_home").position.y))
|
this.node.getChildByName("shop_home").active = true
|
||||||
this.bbg.setPosition(v3(this.bbg_x[0],this.bbg_y))
|
this.bbg.setPosition(v3(this.bbg_x[0],this.bbg_y))
|
||||||
break;
|
break;
|
||||||
case "battle":
|
// case "battle":
|
||||||
// this.node.getChildByName("battle_home").setPosition(v3(0,this.node.getChildByName("battle_home").position.y))
|
// this.node.getChildByName("battle_home").active = true
|
||||||
// this.bbg.setPosition(v3(this.bbg_x[4],this.bbg_y))
|
// this.bbg.setPosition(v3(this.bbg_x[4],this.bbg_y))
|
||||||
oops.gui.toast("暂未开放")
|
|
||||||
break;
|
break;
|
||||||
case "skill":
|
case "skill":
|
||||||
this.node.getChildByName("skill_home").setPosition(v3(0,this.node.getChildByName("skill_home").position.y))
|
this.node.getChildByName("skill_home").active = true
|
||||||
this.bbg.setPosition(v3(this.bbg_x[3],this.bbg_y))
|
this.bbg.setPosition(v3(this.bbg_x[3],this.bbg_y))
|
||||||
break;
|
break;
|
||||||
|
case "home":
|
||||||
|
this.node.getChildByName("mission_home").active = true
|
||||||
|
this.bbg.setPosition(v3(this.bbg_x[2],this.bbg_y))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mission_start(){
|
|
||||||
this.node.getChildByName("bar").active=false;
|
|
||||||
this.node.getChildByName("mission_home").active=false;
|
|
||||||
this.node.getChildByName("mission").active = true;
|
|
||||||
smc.mission.play = true;
|
|
||||||
// oops.message.dispatchEvent("mission_start")
|
|
||||||
}
|
|
||||||
to_mission(){
|
|
||||||
this.bar_change(null,"home")
|
|
||||||
this.node.getChildByName("bar").active=true;
|
|
||||||
// tween(this.bbg).to(0.1,{Position:v3(this.bbg_x[2],this.bbg_y)}).start()
|
|
||||||
this.bbg.setPosition(this.bbg_x[2],this.bbg_y)
|
|
||||||
|
|
||||||
}
|
|
||||||
/** 视图对象通过 ecs.Entity.remove(ControllerComp) 删除组件是触发组件处理自定义释放逻辑 */
|
/** 视图对象通过 ecs.Entity.remove(ControllerComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||||
reset() {
|
reset() {
|
||||||
this.node.destroy();
|
this.node.destroy();
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import { MSkillComp } from "./MSkillComp";
|
|||||||
import { Monster } from "../hero/Mon";
|
import { Monster } from "../hero/Mon";
|
||||||
import { UIID } from "../common/config/GameUIConfig";
|
import { UIID } from "../common/config/GameUIConfig";
|
||||||
import { CardControllerComp } from "./CardController";
|
import { CardControllerComp } from "./CardController";
|
||||||
|
import { MissionHomeComp } from "./MissionHomeComp";
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
/** 视图层对象 */
|
/** 视图层对象 */
|
||||||
@@ -115,9 +116,14 @@ export class MissionComp extends CCComp {
|
|||||||
rewards[i].ItemComp.reset()
|
rewards[i].ItemComp.reset()
|
||||||
rewards[i].ItemComp.ent.destroy()
|
rewards[i].ItemComp.ent.destroy()
|
||||||
}
|
}
|
||||||
|
this.to_mission_home()
|
||||||
}
|
}
|
||||||
to_mission_home(){
|
to_mission_home(){
|
||||||
let home =this.node.parent.getComponent(CardControllerComp);
|
let home =this.node.parent.getComponent(CardControllerComp);
|
||||||
|
let mission_home=home.node.getChildByName("mission_home").getComponent(MissionHomeComp)
|
||||||
|
home.bar_change(null,"home")
|
||||||
|
home.node.getChildByName("bar").active=true;
|
||||||
|
mission_home.load_ui_heros()
|
||||||
}
|
}
|
||||||
mission_init(){
|
mission_init(){
|
||||||
//局内数据初始化
|
//局内数据初始化
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import { smc } from "../common/SingletonModuleComp";
|
|||||||
import { HeroSelect } from "../hero/HeroSelect";
|
import { HeroSelect } from "../hero/HeroSelect";
|
||||||
import { MSklist, SkillSet } from "../common/config/SkillSet";
|
import { MSklist, SkillSet } from "../common/config/SkillSet";
|
||||||
import { MSCard } from "./MSCard";
|
import { MSCard } from "./MSCard";
|
||||||
|
import { CardControllerComp } from "./CardController";
|
||||||
|
import { MissionComp } from "./MissionComp";
|
||||||
|
|
||||||
const { ccclass, property } = _decorator;
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
@@ -35,8 +37,8 @@ export class MissionHomeComp extends CCComp {
|
|||||||
this.load_skill_card()
|
this.load_skill_card()
|
||||||
this.select_skill()
|
this.select_skill()
|
||||||
}
|
}
|
||||||
start_mission(e:any,args:any) {
|
start_mission() {
|
||||||
console.log("mission home start_mission")
|
console.log("mission_home : start_mission")
|
||||||
for(let i=0;i<this.heros.length;i++){
|
for(let i=0;i<this.heros.length;i++){
|
||||||
this.heros[i].to_destroy()
|
this.heros[i].to_destroy()
|
||||||
}
|
}
|
||||||
@@ -48,9 +50,16 @@ export class MissionHomeComp extends CCComp {
|
|||||||
{uuid:0,px:0},
|
{uuid:0,px:0},
|
||||||
{uuid:0,px:100},
|
{uuid:0,px:100},
|
||||||
]
|
]
|
||||||
if(args!=0){
|
|
||||||
this.load_ui_heros()
|
let home =this.node.parent.getComponent(CardControllerComp);
|
||||||
}
|
home.node.getChildByName("bar").active=false;
|
||||||
|
|
||||||
|
let mission=home.node.getChildByName("mission").getComponent(MissionComp)
|
||||||
|
mission.node.active = true;
|
||||||
|
mission.mission_start()
|
||||||
|
|
||||||
|
smc.mission.play = true;
|
||||||
|
this.node.active=false;
|
||||||
}
|
}
|
||||||
load_hero_card(){
|
load_hero_card(){
|
||||||
let hc:number =HeroList.length
|
let hc:number =HeroList.length
|
||||||
@@ -125,7 +134,6 @@ export class MissionHomeComp extends CCComp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
show_heros(){
|
show_heros(){
|
||||||
this.node.getChildByName("heros").setPosition(0,290)
|
this.node.getChildByName("heros").setPosition(0,290)
|
||||||
}
|
}
|
||||||
|
|||||||
41
assets/script/game/map/ShopHomeComp.ts
Normal file
41
assets/script/game/map/ShopHomeComp.ts
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import { _decorator } from "cc";
|
||||||
|
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||||
|
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||||
|
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('ShopHomeComp')
|
||||||
|
@ecs.register('ShopHomeComp', false)
|
||||||
|
export class ShopHomeComp extends CCComp {
|
||||||
|
/** 视图层逻辑代码分离演示 */
|
||||||
|
start() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
item_show(e:any,val:any){
|
||||||
|
oops.gui.open(UIID.ItemInfo, Items[val]);
|
||||||
|
}
|
||||||
|
get_free(){
|
||||||
|
console.log("免费领取")
|
||||||
|
}
|
||||||
|
get_goods1(){
|
||||||
|
console.log("购买商品1")
|
||||||
|
}
|
||||||
|
get_goods2(){
|
||||||
|
console.log("购买商品2")
|
||||||
|
}
|
||||||
|
get_goods3(){
|
||||||
|
console.log("购买商品3")
|
||||||
|
}
|
||||||
|
get_goods4(){
|
||||||
|
console.log("购买商品4")
|
||||||
|
}
|
||||||
|
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||||
|
reset() {
|
||||||
|
this.node.destroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
9
assets/script/game/map/ShopHomeComp.ts.meta
Normal file
9
assets/script/game/map/ShopHomeComp.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "4.0.23",
|
||||||
|
"importer": "typescript",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "08123a0b-18dd-4dcb-8f8b-17664ff1ec67",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user