Commit 971d79db authored by liujiangnan's avatar liujiangnan

feat: 切换环境功能

parent 8b3c7bf1
...@@ -311,28 +311,28 @@ ...@@ -311,28 +311,28 @@
"__id__": 28 "__id__": 28
}, },
{ {
"__id__": 173 "__id__": 181
}, },
{ {
"__id__": 208 "__id__": 216
}, },
{ {
"__id__": 210 "__id__": 218
}, },
{ {
"__id__": 220 "__id__": 228
}, },
{ {
"__id__": 222 "__id__": 230
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 224 "__id__": 232
}, },
{ {
"__id__": 225 "__id__": 233
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1412,6 +1412,9 @@ ...@@ -1412,6 +1412,9 @@
}, },
{ {
"__id__": 166 "__id__": 166
},
{
"__id__": 173
} }
], ],
"_active": true, "_active": true,
...@@ -4224,8 +4227,8 @@ ...@@ -4224,8 +4227,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
445.858, 558.374,
-212.224, -218.593,
0, 0,
0, 0,
0, 0,
...@@ -7965,8 +7968,8 @@ ...@@ -7965,8 +7968,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
494.887, 598.912,
-122.565, -35.524,
0, 0,
0, 0,
0, 0,
...@@ -8336,8 +8339,8 @@ ...@@ -8336,8 +8339,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
492.574, 596.599,
-35.844, -122.885,
0, 0,
0, 0,
0, 0,
...@@ -8668,32 +8671,23 @@ ...@@ -8668,32 +8671,23 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "ConsoleNode", "_name": "BtnChangeEnv",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 8 "__id__": 28
}, },
"_children": [ "_children": [
{ {
"__id__": 174 "__id__": 174
},
{
"__id__": 180
},
{
"__id__": 183
},
{
"__id__": 191
},
{
"__id__": 199
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 207 "__id__": 179
},
{
"__id__": 180
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -8707,20 +8701,20 @@ ...@@ -8707,20 +8701,20 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 120,
"height": 220 "height": 40
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 591.6,
-360, 316,
0, 0,
0, 0,
0, 0,
...@@ -8742,12 +8736,12 @@ ...@@ -8742,12 +8736,12 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "91+HZOZlJKdr+t1XzkQEKe" "_id": "1c60yxgSVAqoVuC4q0upGc"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "content", "_name": "Background",
"_objFlags": 0, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 173 "__id__": 173
}, },
...@@ -8756,13 +8750,13 @@ ...@@ -8756,13 +8750,13 @@
"__id__": 175 "__id__": 175
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 178 "__id__": 177
}, },
{ {
"__id__": 179 "__id__": 178
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -8776,8 +8770,8 @@ ...@@ -8776,8 +8770,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 120,
"height": 18.9 "height": 40
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -8789,7 +8783,7 @@ ...@@ -8789,7 +8783,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
15.75, 0,
0, 0,
0, 0,
0, 0,
...@@ -8811,12 +8805,12 @@ ...@@ -8811,12 +8805,12 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "24BhaxEGlK97fUByzahNNA" "_id": "f0RcVvqiBE2b+jH4Bahn+L"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "label", "_name": "Label",
"_objFlags": 0, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 174 "__id__": 174
}, },
...@@ -8825,35 +8819,32 @@ ...@@ -8825,35 +8819,32 @@
"_components": [ "_components": [
{ {
"__id__": 176 "__id__": 176
},
{
"__id__": 177
} }
], ],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 0,
"g": 255, "g": 0,
"b": 255, "b": 0,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 36.7, "width": 120,
"height": 18.9 "height": 40
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-627.765, 0,
0, 0,
0, 0,
0, 0,
...@@ -8876,7 +8867,7 @@ ...@@ -8876,7 +8867,7 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "a8JlHXNoVMIYa8iO8V9pJv" "_id": "26m7IOXgpAPaQe5eDb6+8z"
}, },
{ {
"__type__": "cc.Label", "__type__": "cc.Label",
...@@ -8893,11 +8884,11 @@ ...@@ -8893,11 +8884,11 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "Label", "_string": "切换到正式",
"_N$string": "Label", "_N$string": "切换到正式",
"_fontSize": 15, "_fontSize": 20,
"_lineHeight": 15, "_lineHeight": 40,
"_enableWrapText": true, "_enableWrapText": false,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
"_spacingX": 0, "_spacingX": 0,
...@@ -8907,21 +8898,53 @@ ...@@ -8907,21 +8898,53 @@
"_N$horizontalAlign": 1, "_N$horizontalAlign": 1,
"_N$verticalAlign": 1, "_N$verticalAlign": 1,
"_N$fontFamily": "Arial", "_N$fontFamily": "Arial",
"_N$overflow": 0, "_N$overflow": 1,
"_N$cacheMode": 0, "_N$cacheMode": 1,
"_id": "7aWnUU64NC5YnWWToB9L2S" "_id": "9aHufqyz1No5uSDZqm8+m5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 174
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bchmxVf+1NOLoyhU/d/Dwl"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 175 "__id__": 174
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 0,
"_target": null, "_target": null,
"_alignFlags": 8, "_alignFlags": 45,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
...@@ -8934,56 +8957,106 @@ ...@@ -8934,56 +8957,106 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 0, "_originalWidth": 100,
"_originalHeight": 0, "_originalHeight": 40,
"_id": "78IPqSab1KQrGbP3jz8URO" "_id": "6b5DkMFf5GsKyTxME2tZRP"
}, },
{ {
"__type__": "cc.Layout", "__type__": "cc.Button",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 174 "__id__": 173
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_normalMaterial": null,
"__type__": "cc.Size", "_grayMaterial": null,
"width": 1280, "duration": 0.1,
"height": 18.9 "zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
}, },
"_resize": 1, "_N$pressedColor": {
"_N$layoutType": 2, "__type__": "cc.Color",
"_N$cellSize": { "r": 200,
"__type__": "cc.Size", "g": 200,
"width": 40, "b": 200,
"height": 40 "a": 255
}, },
"_N$startAxis": 0, "pressedColor": {
"_N$paddingLeft": 0, "__type__": "cc.Color",
"_N$paddingRight": 0, "r": 200,
"_N$paddingTop": 0, "g": 200,
"_N$paddingBottom": 0, "b": 200,
"_N$spacingX": 0, "a": 255
"_N$spacingY": 0, },
"_N$verticalDirection": 1, "_N$hoverColor": {
"_N$horizontalDirection": 0, "__type__": "cc.Color",
"_N$affectedByScale": false, "r": 255,
"_id": "a7sD/OZvVFbrIQDw6dexDk" "g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 174
},
"_id": "49PvKNsMFAzJQUQLukRMa9"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 174 "__id__": 173
}, },
"_enabled": true, "_enabled": true,
"alignMode": 2, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 40, "_alignFlags": 33,
"_left": 0, "_left": 0,
"_right": 0, "_right": 14,
"_top": 0, "_top": 24,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
...@@ -8993,33 +9066,364 @@ ...@@ -8993,33 +9066,364 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 300, "_originalWidth": 0,
"_originalHeight": 0, "_originalHeight": 0,
"_id": "2diCJWUqhAcJPg/A28mr9e" "_id": "58Eh3y+yFI/ZQbA/PGbY7+"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "bg", "_name": "ConsoleNode",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 173 "__id__": 8
}, },
"_children": [], "_children": [
"_active": false,
"_components": [
{ {
"__id__": 181 "__id__": 182
}, },
{ {
"__id__": 182 "__id__": 188
} },
], {
"_prefab": null, "__id__": 191
"_opacity": 138, },
"_color": { {
"__type__": "cc.Color", "__id__": 199
"r": 81, },
"g": 81, {
"__id__": 207
}
],
"_active": true,
"_components": [
{
"__id__": 215
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 220
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-360,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "91+HZOZlJKdr+t1XzkQEKe"
},
{
"__type__": "cc.Node",
"_name": "content",
"_objFlags": 0,
"_parent": {
"__id__": 181
},
"_children": [
{
"__id__": 183
}
],
"_active": false,
"_components": [
{
"__id__": 186
},
{
"__id__": 187
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 18.9
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
15.75,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "24BhaxEGlK97fUByzahNNA"
},
{
"__type__": "cc.Node",
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 182
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 184
},
{
"__id__": 185
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 36.7,
"height": 18.9
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-627.765,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a8JlHXNoVMIYa8iO8V9pJv"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 183
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Label",
"_N$string": "Label",
"_fontSize": 15,
"_lineHeight": 15,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "7aWnUU64NC5YnWWToB9L2S"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 183
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "78IPqSab1KQrGbP3jz8URO"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 182
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 18.9
},
"_resize": 1,
"_N$layoutType": 2,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "a7sD/OZvVFbrIQDw6dexDk"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 182
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 40,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 300,
"_originalHeight": 0,
"_id": "2diCJWUqhAcJPg/A28mr9e"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 181
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 189
},
{
"__id__": 190
}
],
"_prefab": null,
"_opacity": 138,
"_color": {
"__type__": "cc.Color",
"r": 81,
"g": 81,
"b": 81, "b": 81,
"a": 255 "a": 255
}, },
...@@ -9067,7 +9471,7 @@ ...@@ -9067,7 +9471,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 180 "__id__": 188
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -9099,7 +9503,7 @@ ...@@ -9099,7 +9503,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 180 "__id__": 188
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -9126,26 +9530,26 @@ ...@@ -9126,26 +9530,26 @@
"_name": "Console", "_name": "Console",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 173 "__id__": 181
}, },
"_children": [ "_children": [
{ {
"__id__": 184 "__id__": 192
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 187 "__id__": 195
}, },
{ {
"__id__": 188 "__id__": 196
}, },
{ {
"__id__": 189 "__id__": 197
}, },
{ {
"__id__": 190 "__id__": 198
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -9201,16 +9605,16 @@ ...@@ -9201,16 +9605,16 @@
"_name": "content", "_name": "content",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 183 "__id__": 191
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 185 "__id__": 193
}, },
{ {
"__id__": 186 "__id__": 194
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -9266,7 +9670,7 @@ ...@@ -9266,7 +9670,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 184 "__id__": 192
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -9298,7 +9702,7 @@ ...@@ -9298,7 +9702,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 184 "__id__": 192
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -9325,7 +9729,7 @@ ...@@ -9325,7 +9729,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 183 "__id__": 191
}, },
"_enabled": true, "_enabled": true,
"alignMode": 2, "alignMode": 2,
...@@ -9352,7 +9756,7 @@ ...@@ -9352,7 +9756,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 183 "__id__": 191
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -9372,7 +9776,7 @@ ...@@ -9372,7 +9776,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 183 "__id__": 191
}, },
"_enabled": true, "_enabled": true,
"horizontal": false, "horizontal": false,
...@@ -9384,10 +9788,10 @@ ...@@ -9384,10 +9788,10 @@
"scrollEvents": [], "scrollEvents": [],
"cancelInnerEvents": true, "cancelInnerEvents": true,
"_N$content": { "_N$content": {
"__id__": 184 "__id__": 192
}, },
"content": { "content": {
"__id__": 184 "__id__": 192
}, },
"_id": "43wBGhGBpFP7OYyNM+j0Ho" "_id": "43wBGhGBpFP7OYyNM+j0Ho"
}, },
...@@ -9396,7 +9800,7 @@ ...@@ -9396,7 +9800,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 183 "__id__": 191
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -9428,20 +9832,20 @@ ...@@ -9428,20 +9832,20 @@
"_name": "BtnClose", "_name": "BtnClose",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 173 "__id__": 181
}, },
"_children": [ "_children": [
{ {
"__id__": 192 "__id__": 200
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 197 "__id__": 205
}, },
{ {
"__id__": 198 "__id__": 206
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -9497,20 +9901,20 @@ ...@@ -9497,20 +9901,20 @@
"_name": "Background", "_name": "Background",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 191 "__id__": 199
}, },
"_children": [ "_children": [
{ {
"__id__": 193 "__id__": 201
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 195 "__id__": 203
}, },
{ {
"__id__": 196 "__id__": 204
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -9566,13 +9970,13 @@ ...@@ -9566,13 +9970,13 @@
"_name": "Label", "_name": "Label",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 192 "__id__": 200
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 194 "__id__": 202
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -9628,7 +10032,7 @@ ...@@ -9628,7 +10032,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 193 "__id__": 201
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -9661,7 +10065,7 @@ ...@@ -9661,7 +10065,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 192 "__id__": 200
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -9693,7 +10097,7 @@ ...@@ -9693,7 +10097,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 192 "__id__": 200
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 0,
...@@ -9720,7 +10124,7 @@ ...@@ -9720,7 +10124,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 191 "__id__": 199
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -9793,7 +10197,7 @@ ...@@ -9793,7 +10197,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
}, },
"_N$target": { "_N$target": {
"__id__": 192 "__id__": 200
}, },
"_id": "54SC9WcmBAZ6cTznyI0o+3" "_id": "54SC9WcmBAZ6cTznyI0o+3"
}, },
...@@ -9802,7 +10206,7 @@ ...@@ -9802,7 +10206,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 191 "__id__": 199
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -9829,20 +10233,20 @@ ...@@ -9829,20 +10233,20 @@
"_name": "BtnOpen", "_name": "BtnOpen",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 173 "__id__": 181
}, },
"_children": [ "_children": [
{ {
"__id__": 200 "__id__": 208
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 205 "__id__": 213
}, },
{ {
"__id__": 206 "__id__": 214
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -9898,20 +10302,20 @@ ...@@ -9898,20 +10302,20 @@
"_name": "Background", "_name": "Background",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 199 "__id__": 207
}, },
"_children": [ "_children": [
{ {
"__id__": 201 "__id__": 209
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 203 "__id__": 211
}, },
{ {
"__id__": 204 "__id__": 212
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -9967,13 +10371,13 @@ ...@@ -9967,13 +10371,13 @@
"_name": "Label", "_name": "Label",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 200 "__id__": 208
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 202 "__id__": 210
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10029,7 +10433,7 @@ ...@@ -10029,7 +10433,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 201 "__id__": 209
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -10062,7 +10466,7 @@ ...@@ -10062,7 +10466,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 200 "__id__": 208
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -10094,7 +10498,7 @@ ...@@ -10094,7 +10498,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 200 "__id__": 208
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 0,
...@@ -10121,7 +10525,7 @@ ...@@ -10121,7 +10525,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 199 "__id__": 207
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -10194,7 +10598,7 @@ ...@@ -10194,7 +10598,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
}, },
"_N$target": { "_N$target": {
"__id__": 200 "__id__": 208
}, },
"_id": "81HoUuRyJOppi+n4Av/u0p" "_id": "81HoUuRyJOppi+n4Av/u0p"
}, },
...@@ -10203,7 +10607,7 @@ ...@@ -10203,7 +10607,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 199 "__id__": 207
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -10230,7 +10634,7 @@ ...@@ -10230,7 +10634,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 173 "__id__": 181
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
...@@ -10263,7 +10667,7 @@ ...@@ -10263,7 +10667,7 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 209 "__id__": 217
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10319,7 +10723,7 @@ ...@@ -10319,7 +10723,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 208 "__id__": 216
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -10355,16 +10759,16 @@ ...@@ -10355,16 +10759,16 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 211 "__id__": 219
} }
], ],
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 218 "__id__": 226
}, },
{ {
"__id__": 219 "__id__": 227
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10420,24 +10824,24 @@ ...@@ -10420,24 +10824,24 @@
"_name": "progress", "_name": "progress",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 210 "__id__": 218
}, },
"_children": [ "_children": [
{ {
"__id__": 212 "__id__": 220
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 215 "__id__": 223
}, },
{ {
"__id__": 216 "__id__": 224
} }
], ],
"_prefab": { "_prefab": {
"__id__": 217 "__id__": 225
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -10491,17 +10895,17 @@ ...@@ -10491,17 +10895,17 @@
"_name": "bar", "_name": "bar",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 211 "__id__": 219
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 213 "__id__": 221
} }
], ],
"_prefab": { "_prefab": {
"__id__": 214 "__id__": 222
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -10555,7 +10959,7 @@ ...@@ -10555,7 +10959,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 212 "__id__": 220
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -10585,7 +10989,7 @@ ...@@ -10585,7 +10989,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 211 "__id__": 219
}, },
"asset": { "asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4" "__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
...@@ -10598,7 +11002,7 @@ ...@@ -10598,7 +11002,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 211 "__id__": 219
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -10630,7 +11034,7 @@ ...@@ -10630,7 +11034,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 211 "__id__": 219
}, },
"_enabled": true, "_enabled": true,
"_id": "3eMT/DXoJNGZT/8Z3nuTUH" "_id": "3eMT/DXoJNGZT/8Z3nuTUH"
...@@ -10638,7 +11042,7 @@ ...@@ -10638,7 +11042,7 @@
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
"__id__": 211 "__id__": 219
}, },
"asset": { "asset": {
"__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4" "__uuid__": "3d356c4d-cb23-4239-aa5f-8a913f420fa4"
...@@ -10651,7 +11055,7 @@ ...@@ -10651,7 +11055,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 210 "__id__": 218
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -10683,7 +11087,7 @@ ...@@ -10683,7 +11087,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 210 "__id__": 218
}, },
"_enabled": true, "_enabled": true,
"_id": "d9Sm5lOKBAxKufJF2Q8Nr8" "_id": "d9Sm5lOKBAxKufJF2Q8Nr8"
...@@ -10699,7 +11103,7 @@ ...@@ -10699,7 +11103,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 221 "__id__": 229
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10755,7 +11159,7 @@ ...@@ -10755,7 +11159,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 220 "__id__": 228
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -10793,7 +11197,7 @@ ...@@ -10793,7 +11197,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 223 "__id__": 231
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -10849,7 +11253,7 @@ ...@@ -10849,7 +11253,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 222 "__id__": 230
}, },
"_enabled": true, "_enabled": true,
"_id": "c8RSZKHRJO95/RfIMIkSA5" "_id": "c8RSZKHRJO95/RfIMIkSA5"
......
...@@ -551,6 +551,16 @@ export default class NewClass extends middleLayerBase { ...@@ -551,6 +551,16 @@ export default class NewClass extends middleLayerBase {
}); });
}); });
cc.find('middleLayer/ui/BtnChangeEnv').on('click', () => {
if ((<any>window).air.engineInfo.isDev == 1) {
(<any>window).air.engineInfo.isDev = 0;
cc.find(`middleLayer/ui/BtnChangeEnv/Background/Label`).getComponent(cc.Label).string = `切换到测试`;
} else {
(<any>window).air.engineInfo.isDev = 1;
cc.find(`middleLayer/ui/BtnChangeEnv/Background/Label`).getComponent(cc.Label).string = `切换到正式`;
}
});
cc.find('middleLayer/ui/BtnOpenTest').on('click', () => { cc.find('middleLayer/ui/BtnOpenTest').on('click', () => {
(<any>window).courseware.startTest('apple'); (<any>window).courseware.startTest('apple');
}); });
......
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