Commit e7200d07 authored by liujiangnan's avatar liujiangnan

feat: 沙漠添加返回按钮

parent adb02552
...@@ -85,18 +85,21 @@ ...@@ -85,18 +85,21 @@
}, },
{ {
"__id__": 344 "__id__": 344
},
{
"__id__": 352
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 352 "__id__": 356
}, },
{ {
"__id__": 353 "__id__": 357
}, },
{ {
"__id__": 354 "__id__": 358
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5035,7 +5038,7 @@ ...@@ -5035,7 +5038,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "cdyKoYUT5PtrABod3IBP5C" "_id": "8anZvVoaRNb4G7UYtzKEu8"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -5070,7 +5073,7 @@ ...@@ -5070,7 +5073,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "74BGYE7VVAgrJ8Phh+MXoU" "_id": "a1YCFmggdAprjrZbbw40ky"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -5088,7 +5091,7 @@ ...@@ -5088,7 +5091,7 @@
"a": 255 "a": 255
}, },
"_width": 3, "_width": 3,
"_id": "71M9m+FdpMH606KSBzGoiq" "_id": "4duiZQhe9Gdqhx6TDnYcUa"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -5243,7 +5246,7 @@ ...@@ -5243,7 +5246,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "90wmLrtTNKpal8Aj2o3+YO" "_id": "e4RcWsrm1PD5R41h9N/lCl"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -5278,7 +5281,7 @@ ...@@ -5278,7 +5281,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "aaxAn42dJL9oa5vah0yZpL" "_id": "2dbYR2f+xD9ahO+evwTYax"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -5296,7 +5299,7 @@ ...@@ -5296,7 +5299,7 @@
"a": 255 "a": 255
}, },
"_width": 7, "_width": 7,
"_id": "eeUZoY9A1CRqcCOv1lNb5m" "_id": "463HAkV0RNF6tm66aT1BHV"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -8586,7 +8589,7 @@ ...@@ -8586,7 +8589,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "19Xxq+YPBBvb2bBrd+5O0g" "_id": "63tjNyQbVD45aCI1vVf9xV"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -8621,7 +8624,7 @@ ...@@ -8621,7 +8624,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "30XEacLulBCJfafeXGdeYC" "_id": "aciN+nwTFBoYLtySA0Ui74"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -8639,7 +8642,7 @@ ...@@ -8639,7 +8642,7 @@
"a": 255 "a": 255
}, },
"_width": 7, "_width": 7,
"_id": "ebJwFA7fdMQ7ndSJHJrMIL" "_id": "95q6U8kklOt4kA9bSs55tQ"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -8794,7 +8797,7 @@ ...@@ -8794,7 +8797,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "94T6VpTi5HSYzJsBytsBYy" "_id": "7fsvq3G5RKKLalfoQ1IEW1"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -8829,7 +8832,7 @@ ...@@ -8829,7 +8832,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "32tT8cbAFI34+J1ICeCJgu" "_id": "948swwiBJC8aZpMORCAi0E"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -8847,7 +8850,7 @@ ...@@ -8847,7 +8850,7 @@
"a": 255 "a": 255
}, },
"_width": 3, "_width": 3,
"_id": "41p1Nr3ZNKXI8/eTloTIsh" "_id": "3ezgvmlPhNua81AT5Fxun4"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -11940,7 +11943,7 @@ ...@@ -11940,7 +11943,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "8ck4BgziJLr77NCNxXAJbE" "_id": "aaatAAwNVNZaee299hTRjO"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -11975,7 +11978,7 @@ ...@@ -11975,7 +11978,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "5dynjQluBMDpjnS6DsKV1+" "_id": "daaT5XakhHD7fFFzsVsW57"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -11993,7 +11996,7 @@ ...@@ -11993,7 +11996,7 @@
"a": 255 "a": 255
}, },
"_width": 7, "_width": 7,
"_id": "056aSYaNhAko+AI+FhcXit" "_id": "a6KCXGDcNF/5vqtFTkyuQs"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -12148,7 +12151,7 @@ ...@@ -12148,7 +12151,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "5fSDFp7u5PqYiZ/Rkb5DNN" "_id": "c4j8Ufx6pCK5BOnFTEQx6U"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -12183,7 +12186,7 @@ ...@@ -12183,7 +12186,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "33QeyqDwpBK4nUR1oFUMNd" "_id": "45976hIDdCvqVGHWhiw5w6"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -12201,7 +12204,7 @@ ...@@ -12201,7 +12204,7 @@
"a": 255 "a": 255
}, },
"_width": 3, "_width": 3,
"_id": "b9CYfAp+xMH5BKOabDSK3t" "_id": "c8/1FfwbdILrEtd0gzpgp/"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -15491,7 +15494,7 @@ ...@@ -15491,7 +15494,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "c7f4fzdSpFtaY5048hbGDT" "_id": "06U86EBMRMoLF3h7vXFuMt"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -15526,7 +15529,7 @@ ...@@ -15526,7 +15529,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "34fdnOFedL0q24r7fYRRbF" "_id": "cbGYfYIKBP74qkSkwme6a7"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -15544,7 +15547,7 @@ ...@@ -15544,7 +15547,7 @@
"a": 255 "a": 255
}, },
"_width": 7, "_width": 7,
"_id": "f26Ut3OLJJS4gFl+1X3NXF" "_id": "ce2cL/5R1MtK+rlgBzQXjM"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -15699,7 +15702,7 @@ ...@@ -15699,7 +15702,7 @@
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"showInEditor": false, "showInEditor": false,
"_id": "bbXU5LtJRN2aUDTP7k0Mmx" "_id": "65imA00jtAT7hqO6Zn1IzU"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -15734,7 +15737,7 @@ ...@@ -15734,7 +15737,7 @@
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 0,
"_N$cacheMode": 0, "_N$cacheMode": 0,
"_id": "94V4PM1R9Bo4mVYO6/h1iw" "_id": "53vYSldJ5AgoEjUHjD0Puh"
}, },
{ {
"__type__": "cc.LabelOutline", "__type__": "cc.LabelOutline",
...@@ -15752,7 +15755,7 @@ ...@@ -15752,7 +15755,7 @@
"a": 255 "a": 255
}, },
"_width": 3, "_width": 3,
"_id": "ddOD/wsb5OA774sBQk6x15" "_id": "a72ZnJyP9OKpHqnihaufe2"
}, },
{ {
"__type__": "cc.RichText", "__type__": "cc.RichText",
...@@ -16931,6 +16934,201 @@ ...@@ -16931,6 +16934,201 @@
"_N$target": null, "_N$target": null,
"_id": "1db6yXLmFGg5loYxr6NLML" "_id": "1db6yXLmFGg5loYxr6NLML"
}, },
{
"__type__": "cc.Node",
"_name": "btn_return",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 353
},
{
"__id__": 354
},
{
"__id__": 355
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 107,
"height": 112
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-577.9,
296.4,
0,
0,
0,
0,
1,
0.6,
0.6,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "65ngWSVp1Hl6H8rrGPKhuM"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 352
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e32535a3-f75f-4fd2-a3f0-400df893d81f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "34Qqg70jNAcrNJwjEFoBSp"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 352
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 30,
"_right": 0,
"_top": 30,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "746mA8kXRILJ+q0ipURElm"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 352
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "b6o+JyzxJJApgPOdCtgE2J"
},
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
"_name": "", "_name": "",
......
...@@ -199,5 +199,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -199,5 +199,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayerComponent.loadOnlineBundle('workbook_l2'); middleLayerComponent.loadOnlineBundle('workbook_l2');
} }
}, 0.6); }, 0.6);
const btnReturn = cc.find('Canvas/btn_return');
buttonOnClick(btnReturn, () => {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
middleLayer.getComponent('middleLayer').loadOnlineBundle('NJ_menu');
}
}, 0.6);
} }
} }
{
"ver": "2.3.5",
"uuid": "6be1515c-d227-44ca-9b31-f193c57a8192",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 107,
"height": 112,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "e32535a3-f75f-4fd2-a3f0-400df893d81f",
"rawTextureUuid": "6be1515c-d227-44ca-9b31-f193c57a8192",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 107,
"height": 112,
"rawWidth": 107,
"rawHeight": 112,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment