加入迷雾控制

This commit is contained in:
caizhitao
2020-01-12 08:05:29 +08:00
parent ba90b2170c
commit 9f28ef4305
5 changed files with 655 additions and 59 deletions

View File

@@ -78,10 +78,10 @@
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 137
},
{
"__id__": 126
"__id__": 138
}
],
"_prefab": null,
@@ -171,7 +171,7 @@
"array": [
0,
0,
492.7684547533456,
491.0364039457767,
0,
0,
0,
@@ -245,13 +245,13 @@
"__id__": 9
},
{
"__id__": 109
"__id__": 121
}
],
"_active": true,
"_components": [
{
"__id__": 124
"__id__": 136
}
],
"_prefab": null,
@@ -451,15 +451,18 @@
},
{
"__id__": 95
},
{
"__id__": 107
}
],
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 119
},
{
"__id__": 108
"__id__": 120
}
],
"_prefab": null,
@@ -474,7 +477,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 576,
"height": 540
"height": 480
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1319,7 +1322,7 @@
"ctor": "Float64Array",
"array": [
0,
-126,
-100,
0,
0,
0,
@@ -2080,7 +2083,7 @@
"ctor": "Float64Array",
"array": [
0,
-222,
-170,
0,
0,
0,
@@ -2841,7 +2844,7 @@
"ctor": "Float64Array",
"array": [
0,
-318,
-240,
0,
0,
0,
@@ -3602,7 +3605,7 @@
"ctor": "Float64Array",
"array": [
0,
-414,
-310,
0,
0,
0,
@@ -4360,7 +4363,7 @@
"ctor": "Float64Array",
"array": [
0,
-510,
-380,
0,
0,
0,
@@ -4898,6 +4901,589 @@
"_originalHeight": 0,
"_id": "efiFYhAgxFpY9khUf6wQ/S"
},
{
"__type__": "cc.Node",
"_name": "EnableFogToggle",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [
{
"__id__": 108
},
{
"__id__": 111
}
],
"_active": true,
"_components": [
{
"__id__": 118
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 576,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-450,
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": "76vm3aJ6RBJJV/ObsptXAg"
},
{
"__type__": "cc.Node",
"_name": "DescLabel",
"_objFlags": 0,
"_parent": {
"__id__": 107
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 109
},
{
"__id__": 110
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 432,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 1,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
144,
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": "39faOmDqFEF45qoB99qGG8"
},
{
"__type__": "cc.Label",
"_name": "SliderDescLabel<Label>",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "启用迷雾效果:",
"_N$string": "启用迷雾效果:",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "72bn8MBPlJub9703i57OuY"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0.25,
"_top": 10,
"_bottom": 10,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": false,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 113.38,
"_originalHeight": 50.4,
"_id": "c8mkfeqR9NUZu8Cz/2SPbO"
},
{
"__type__": "cc.Node",
"_name": "Toggle",
"_objFlags": 0,
"_parent": {
"__id__": 107
},
"_children": [
{
"__id__": 112
},
{
"__id__": 114
}
],
"_active": true,
"_components": [
{
"__id__": 116
},
{
"__id__": 117
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 28,
"height": 28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
158,
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": "21L/wEbjdNUYyJ9y4SbFFH"
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 111
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 113
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 28,
"height": 28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
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": "f7RlBAbBNJNbmEm3chl062"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6827ca32-0107-4552-bab2-dfb31799bb44"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d6Isoo7/ZO/bbOhEvqBb0k"
},
{
"__type__": "cc.Node",
"_name": "checkmark",
"_objFlags": 0,
"_parent": {
"__id__": 111
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 115
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 28,
"height": 28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
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": "09QL6g+ENK5oeAI3eRiFkZ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "90004ad6-2f6d-40e1-93ef-b714375c6f06"
},
"_type": 0,
"_sizeMode": 2,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_atlas": null,
"_id": "40fLjBd/9DJKek7+KSubyW"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 0.75,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": false,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "9fBwpoEbhJ6ZQE7B47Ub6L"
},
{
"__type__": "cc.Toggle",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_enabled": true,
"_normalMaterial": {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
},
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 214,
"g": 214,
"b": 214,
"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": {
"__id__": 112
},
"_N$isChecked": false,
"toggleGroup": null,
"checkMark": {
"__id__": 115
},
"checkEvents": [],
"_id": "11XOk3zDJLfZvBbfeWPiSh"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 107
},
"_enabled": true,
"alignMode": 1,
"_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": 461.38,
"_originalHeight": 0,
"_id": "4eONhDOstGwr5Sg+FM0KX0"
},
{
"__type__": "cc.Widget",
"_name": "",
@@ -4936,7 +5522,7 @@
"_layoutSize": {
"__type__": "cc.Size",
"width": 576,
"height": 540
"height": 480
},
"_resize": 1,
"_N$layoutType": 2,
@@ -4952,7 +5538,7 @@
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 36,
"_N$spacingY": 10,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
@@ -4967,31 +5553,31 @@
},
"_children": [
{
"__id__": 110
"__id__": 122
},
{
"__id__": 112
"__id__": 124
},
{
"__id__": 114
"__id__": 126
},
{
"__id__": 116
"__id__": 128
},
{
"__id__": 118
"__id__": 130
},
{
"__id__": 120
"__id__": 132
}
],
"_active": true,
"_components": [
{
"__id__": 122
"__id__": 134
},
{
"__id__": 123
"__id__": 135
}
],
"_prefab": null,
@@ -5047,13 +5633,13 @@
"_name": "ball_0",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 121
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
"__id__": 123
}
],
"_prefab": null,
@@ -5109,7 +5695,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 122
},
"_enabled": true,
"_materials": [
@@ -5141,13 +5727,13 @@
"_name": "cocos_logo",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 121
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 113
"__id__": 125
}
],
"_prefab": null,
@@ -5203,7 +5789,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
"__id__": 124
},
"_enabled": true,
"_materials": [
@@ -5235,13 +5821,13 @@
"_name": "ball_1",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 121
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 115
"__id__": 127
}
],
"_prefab": null,
@@ -5297,7 +5883,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
"__id__": 126
},
"_enabled": true,
"_materials": [
@@ -5329,13 +5915,13 @@
"_name": "video_btn",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 121
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 117
"__id__": 129
}
],
"_prefab": null,
@@ -5391,7 +5977,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
"__id__": 128
},
"_enabled": true,
"_materials": [
@@ -5423,13 +6009,13 @@
"_name": "SystemFont",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 121
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 119
"__id__": 131
}
],
"_prefab": null,
@@ -5485,7 +6071,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
"__id__": 130
},
"_enabled": true,
"_materials": [
@@ -5515,13 +6101,13 @@
"_name": "BmFont",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 121
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 133
}
],
"_prefab": null,
@@ -5577,7 +6163,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 132
},
"_enabled": true,
"_materials": [
@@ -5609,7 +6195,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 121
},
"_enabled": true,
"alignMode": 1,
@@ -5636,7 +6222,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 121
},
"_enabled": true,
"_layoutSize": {