Commit 6d367c3d authored by Tt's avatar Tt

修改按钮事件

parent 3ab9a267
No preview for this file type
......@@ -84,28 +84,28 @@
"__id__": 71
},
{
"__id__": 82
"__id__": 83
},
{
"__id__": 103
"__id__": 104
},
{
"__id__": 143
"__id__": 144
},
{
"__id__": 188
"__id__": 189
}
],
"_active": true,
"_components": [
{
"__id__": 198
},
{
"__id__": 199
},
{
"__id__": 200
},
{
"__id__": 201
}
],
"_prefab": null,
......@@ -3224,13 +3224,13 @@
"__id__": 75
},
{
"__id__": 80
"__id__": 81
}
],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 82
}
],
"_prefab": null,
......@@ -3391,7 +3391,11 @@
}
],
"_active": false,
"_components": [],
"_components": [
{
"__id__": 80
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -3403,8 +3407,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 300,
"height": 300
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3628,6 +3632,76 @@
"_atlas": null,
"_id": "59VZnhWc1KPZ6Cb0LtuHLx"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
},
"_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": {
"__id__": 75
},
"_id": "77V6o11PpEwLoUSjag/YAJ"
},
{
"__type__": "cc.Node",
"_name": "layer_paopao",
......@@ -3727,23 +3801,23 @@
},
"_children": [
{
"__id__": 83
"__id__": 84
},
{
"__id__": 88
"__id__": 89
}
],
"_active": false,
"_components": [
{
"__id__": 100
"__id__": 101
},
{
"__id__": 101
"__id__": 102
}
],
"_prefab": {
"__id__": 102
"__id__": 103
},
"_opacity": 255,
"_color": {
......@@ -3797,23 +3871,23 @@
"_name": "btn_back",
"_objFlags": 0,
"_parent": {
"__id__": 82
"__id__": 83
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 84
},
{
"__id__": 85
},
{
"__id__": 86
},
{
"__id__": 87
}
],
"_prefab": {
"__id__": 87
"__id__": 88
},
"_opacity": 255,
"_color": {
......@@ -3867,7 +3941,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 84
},
"_enabled": true,
"_materials": [
......@@ -3899,7 +3973,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 84
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3967,7 +4041,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 84
},
"_enabled": true,
"alignMode": 1,
......@@ -3992,7 +4066,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 83
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4005,27 +4079,27 @@
"_name": "img_npc_voice",
"_objFlags": 0,
"_parent": {
"__id__": 82
"__id__": 83
},
"_children": [
{
"__id__": 89
"__id__": 90
},
{
"__id__": 92
"__id__": 93
},
{
"__id__": 95
"__id__": 96
}
],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 99
}
],
"_prefab": {
"__id__": 99
"__id__": 100
},
"_opacity": 255,
"_color": {
......@@ -4079,17 +4153,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 90
"__id__": 91
}
],
"_prefab": {
"__id__": 91
"__id__": 92
},
"_opacity": 255,
"_color": {
......@@ -4143,7 +4217,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 90
},
"_enabled": true,
"_materials": [
......@@ -4173,7 +4247,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 83
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4186,17 +4260,17 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 89
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 93
"__id__": 94
}
],
"_prefab": {
"__id__": 94
"__id__": 95
},
"_opacity": 255,
"_color": {
......@@ -4250,7 +4324,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -4280,7 +4354,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 83
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4293,17 +4367,17 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 89
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 96
"__id__": 97
}
],
"_prefab": {
"__id__": 97
"__id__": 98
},
"_opacity": 255,
"_color": {
......@@ -4357,7 +4431,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
"__id__": 96
},
"_enabled": true,
"_materials": [
......@@ -4387,7 +4461,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 83
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4400,7 +4474,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
"__id__": 89
},
"_enabled": true,
"alignMode": 1,
......@@ -4425,7 +4499,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 83
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4438,7 +4512,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 83
},
"_enabled": true,
"alignMode": 1,
......@@ -4465,7 +4539,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 83
},
"_enabled": true,
"_id": "4bOu5J5BNMRbgcr/N6dJzl"
......@@ -4473,7 +4547,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 82
"__id__": 83
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4490,20 +4564,20 @@
},
"_children": [
{
"__id__": 104
"__id__": 105
}
],
"_active": false,
"_components": [
{
"__id__": 140
"__id__": 141
},
{
"__id__": 141
"__id__": 142
}
],
"_prefab": {
"__id__": 142
"__id__": 143
},
"_opacity": 255,
"_color": {
......@@ -4557,39 +4631,39 @@
"_name": "layout_record",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 104
},
"_children": [
{
"__id__": 105
"__id__": 106
},
{
"__id__": 108
"__id__": 109
},
{
"__id__": 111
"__id__": 112
},
{
"__id__": 114
"__id__": 115
},
{
"__id__": 117
"__id__": 118
},
{
"__id__": 120
"__id__": 121
},
{
"__id__": 123
"__id__": 124
}
],
"_active": true,
"_components": [
{
"__id__": 138
"__id__": 139
}
],
"_prefab": {
"__id__": 139
"__id__": 140
},
"_opacity": 255,
"_color": {
......@@ -4643,17 +4717,17 @@
"_name": "voice_white",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 107
}
],
"_prefab": {
"__id__": 107
"__id__": 108
},
"_opacity": 255,
"_color": {
......@@ -4707,7 +4781,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 106
},
"_enabled": true,
"_materials": [
......@@ -4737,7 +4811,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4750,17 +4824,17 @@
"_name": "record_bg",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 109
"__id__": 110
}
],
"_prefab": {
"__id__": 110
"__id__": 111
},
"_opacity": 255,
"_color": {
......@@ -4814,7 +4888,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 109
},
"_enabled": true,
"_materials": [
......@@ -4844,7 +4918,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4857,17 +4931,17 @@
"_name": "record_icon",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 112
"__id__": 113
}
],
"_prefab": {
"__id__": 113
"__id__": 114
},
"_opacity": 255,
"_color": {
......@@ -4921,7 +4995,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 112
},
"_enabled": true,
"_materials": [
......@@ -4951,7 +5025,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4964,17 +5038,17 @@
"_name": "record_time",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 115
"__id__": 116
}
],
"_prefab": {
"__id__": 116
"__id__": 117
},
"_opacity": 255,
"_color": {
......@@ -5028,7 +5102,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 114
"__id__": 115
},
"_enabled": true,
"_materials": [
......@@ -5058,7 +5132,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5071,17 +5145,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 105
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 118
"__id__": 119
}
],
"_prefab": {
"__id__": 119
"__id__": 120
},
"_opacity": 255,
"_color": {
......@@ -5135,7 +5209,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 118
},
"_enabled": true,
"_materials": [
......@@ -5173,7 +5247,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5186,17 +5260,17 @@
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 105
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 122
}
],
"_prefab": {
"__id__": 122
"__id__": 123
},
"_opacity": 255,
"_color": {
......@@ -5250,7 +5324,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 121
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5316,7 +5390,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5329,30 +5403,30 @@
"_name": "btn_play",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 105
},
"_children": [
{
"__id__": 124
"__id__": 125
},
{
"__id__": 127
"__id__": 128
},
{
"__id__": 130
"__id__": 131
},
{
"__id__": 133
"__id__": 134
}
],
"_active": false,
"_components": [
{
"__id__": 136
"__id__": 137
}
],
"_prefab": {
"__id__": 137
"__id__": 138
},
"_opacity": 255,
"_color": {
......@@ -5406,17 +5480,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 124
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 126
}
],
"_prefab": {
"__id__": 126
"__id__": 127
},
"_opacity": 255,
"_color": {
......@@ -5470,7 +5544,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 125
},
"_enabled": true,
"_materials": [
......@@ -5500,7 +5574,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5513,17 +5587,17 @@
"_name": "p0",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 124
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 128
"__id__": 129
}
],
"_prefab": {
"__id__": 129
"__id__": 130
},
"_opacity": 255,
"_color": {
......@@ -5577,7 +5651,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 127
"__id__": 128
},
"_enabled": true,
"_materials": [
......@@ -5607,7 +5681,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5620,17 +5694,17 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 124
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 131
"__id__": 132
}
],
"_prefab": {
"__id__": 132
"__id__": 133
},
"_opacity": 255,
"_color": {
......@@ -5684,7 +5758,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 130
"__id__": 131
},
"_enabled": true,
"_materials": [
......@@ -5714,7 +5788,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5727,17 +5801,17 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 124
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 134
"__id__": 135
}
],
"_prefab": {
"__id__": 135
"__id__": 136
},
"_opacity": 255,
"_color": {
......@@ -5791,7 +5865,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 133
"__id__": 134
},
"_enabled": true,
"_materials": [
......@@ -5821,7 +5895,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5834,7 +5908,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 123
"__id__": 124
},
"_enabled": true,
"alignMode": 1,
......@@ -5859,7 +5933,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5872,7 +5946,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 105
},
"_enabled": true,
"alignMode": 1,
......@@ -5897,7 +5971,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5910,7 +5984,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
"__id__": 104
},
"_enabled": true,
"alignMode": 1,
......@@ -5937,7 +6011,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
"__id__": 104
},
"_enabled": true,
"_id": "28SYbspDNAfqMNbpyAm+q/"
......@@ -5945,7 +6019,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 103
"__id__": 104
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5962,29 +6036,29 @@
},
"_children": [
{
"__id__": 144
"__id__": 145
},
{
"__id__": 158
"__id__": 159
},
{
"__id__": 167
"__id__": 168
},
{
"__id__": 176
"__id__": 177
}
],
"_active": false,
"_components": [
{
"__id__": 185
"__id__": 186
},
{
"__id__": 186
"__id__": 187
}
],
"_prefab": {
"__id__": 187
"__id__": 188
},
"_opacity": 255,
"_color": {
......@@ -6038,26 +6112,26 @@
"_name": "voice",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 144
},
"_children": [
{
"__id__": 145
"__id__": 146
},
{
"__id__": 148
"__id__": 149
},
{
"__id__": 151
"__id__": 152
},
{
"__id__": 154
"__id__": 155
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 157
"__id__": 158
},
"_opacity": 255,
"_color": {
......@@ -6111,17 +6185,17 @@
"_name": "excellent",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 145
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 146
"__id__": 147
}
],
"_prefab": {
"__id__": 147
"__id__": 148
},
"_opacity": 255,
"_color": {
......@@ -6175,7 +6249,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 145
"__id__": 146
},
"_enabled": true,
"_clip": {
......@@ -6192,7 +6266,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6205,17 +6279,17 @@
"_name": "good",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 145
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 149
"__id__": 150
}
],
"_prefab": {
"__id__": 150
"__id__": 151
},
"_opacity": 255,
"_color": {
......@@ -6269,7 +6343,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 148
"__id__": 149
},
"_enabled": true,
"_clip": {
......@@ -6286,7 +6360,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6299,17 +6373,17 @@
"_name": "tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 145
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 152
"__id__": 153
}
],
"_prefab": {
"__id__": 153
"__id__": 154
},
"_opacity": 255,
"_color": {
......@@ -6363,7 +6437,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 151
"__id__": 152
},
"_enabled": true,
"_clip": {
......@@ -6380,7 +6454,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6393,17 +6467,17 @@
"_name": "ani",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 145
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 155
"__id__": 156
}
],
"_prefab": {
"__id__": 156
"__id__": 157
},
"_opacity": 255,
"_color": {
......@@ -6457,7 +6531,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
"__id__": 155
},
"_enabled": true,
"_clip": {
......@@ -6474,7 +6548,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6485,7 +6559,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6498,24 +6572,24 @@
"_name": "layout_excellent",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 144
},
"_children": [
{
"__id__": 159
"__id__": 160
},
{
"__id__": 162
"__id__": 163
}
],
"_active": false,
"_components": [
{
"__id__": 165
"__id__": 166
}
],
"_prefab": {
"__id__": 166
"__id__": 167
},
"_opacity": 255,
"_color": {
......@@ -6569,17 +6643,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 158
"__id__": 159
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 160
"__id__": 161
}
],
"_prefab": {
"__id__": 161
"__id__": 162
},
"_opacity": 150,
"_color": {
......@@ -6633,7 +6707,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 159
"__id__": 160
},
"_enabled": true,
"_materials": [
......@@ -6663,7 +6737,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6676,17 +6750,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 158
"__id__": 159
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 163
"__id__": 164
}
],
"_prefab": {
"__id__": 164
"__id__": 165
},
"_opacity": 255,
"_color": {
......@@ -6740,7 +6814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 162
"__id__": 163
},
"_enabled": true,
"_materials": [
......@@ -6778,7 +6852,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6791,7 +6865,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 158
"__id__": 159
},
"_enabled": true,
"alignMode": 1,
......@@ -6816,7 +6890,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6829,24 +6903,24 @@
"_name": "layout_good",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 144
},
"_children": [
{
"__id__": 168
"__id__": 169
},
{
"__id__": 171
"__id__": 172
}
],
"_active": false,
"_components": [
{
"__id__": 174
"__id__": 175
}
],
"_prefab": {
"__id__": 175
"__id__": 176
},
"_opacity": 255,
"_color": {
......@@ -6900,17 +6974,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 167
"__id__": 168
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 169
"__id__": 170
}
],
"_prefab": {
"__id__": 170
"__id__": 171
},
"_opacity": 150,
"_color": {
......@@ -6964,7 +7038,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 168
"__id__": 169
},
"_enabled": true,
"_materials": [
......@@ -6994,7 +7068,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7007,17 +7081,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 167
"__id__": 168
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 172
"__id__": 173
}
],
"_prefab": {
"__id__": 173
"__id__": 174
},
"_opacity": 255,
"_color": {
......@@ -7071,7 +7145,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 171
"__id__": 172
},
"_enabled": true,
"_materials": [
......@@ -7109,7 +7183,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7122,7 +7196,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 167
"__id__": 168
},
"_enabled": true,
"alignMode": 1,
......@@ -7147,7 +7221,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7160,24 +7234,24 @@
"_name": "layout_tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 143
"__id__": 144
},
"_children": [
{
"__id__": 177
"__id__": 178
},
{
"__id__": 180
"__id__": 181
}
],
"_active": false,
"_components": [
{
"__id__": 183
"__id__": 184
}
],
"_prefab": {
"__id__": 184
"__id__": 185
},
"_opacity": 255,
"_color": {
......@@ -7231,17 +7305,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 176
"__id__": 177
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 178
"__id__": 179
}
],
"_prefab": {
"__id__": 179
"__id__": 180
},
"_opacity": 150,
"_color": {
......@@ -7295,7 +7369,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 177
"__id__": 178
},
"_enabled": true,
"_materials": [
......@@ -7325,7 +7399,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7338,17 +7412,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 176
"__id__": 177
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 181
"__id__": 182
}
],
"_prefab": {
"__id__": 182
"__id__": 183
},
"_opacity": 255,
"_color": {
......@@ -7402,7 +7476,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 180
"__id__": 181
},
"_enabled": true,
"_materials": [
......@@ -7440,7 +7514,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7453,7 +7527,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 176
"__id__": 177
},
"_enabled": true,
"alignMode": 1,
......@@ -7478,7 +7552,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7491,7 +7565,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 143
"__id__": 144
},
"_enabled": true,
"alignMode": 1,
......@@ -7518,7 +7592,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 143
"__id__": 144
},
"_enabled": true,
"_id": "f8RLolwXVG8YWO7i32J+zq"
......@@ -7526,7 +7600,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 143
"__id__": 144
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7543,13 +7617,13 @@
},
"_children": [
{
"__id__": 189
"__id__": 190
},
{
"__id__": 192
"__id__": 193
},
{
"__id__": 195
"__id__": 196
}
],
"_active": false,
......@@ -7607,11 +7681,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 188
"__id__": 189
},
"_children": [
{
"__id__": 190
"__id__": 191
}
],
"_active": true,
......@@ -7669,13 +7743,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 189
"__id__": 190
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 191
"__id__": 192
}
],
"_prefab": null,
......@@ -7731,7 +7805,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 190
"__id__": 191
},
"_enabled": true,
"_materials": [],
......@@ -7762,11 +7836,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 188
"__id__": 189
},
"_children": [
{
"__id__": 193
"__id__": 194
}
],
"_active": true,
......@@ -7824,13 +7898,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 192
"__id__": 193
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 194
"__id__": 195
}
],
"_prefab": null,
......@@ -7886,7 +7960,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 193
"__id__": 194
},
"_enabled": true,
"_materials": [],
......@@ -7914,11 +7988,11 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 188
"__id__": 189
},
"_children": [
{
"__id__": 196
"__id__": 197
}
],
"_active": true,
......@@ -7976,13 +8050,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 195
"__id__": 196
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 197
"__id__": 198
}
],
"_prefab": null,
......@@ -8038,7 +8112,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 196
"__id__": 197
},
"_enabled": true,
"_clip": {
......
......@@ -32,7 +32,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
initData() {
this.speed = 30
}
initView() {}
initView() { }
initEvent() {
let bottom_megaphone = pg.view.find(this, 'layer_game/bg/bottom_megaphone')
// 底部海螺点击事件
......@@ -56,6 +56,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let layer_paopao = pg.view.find(this, 'layer_game/bg/layer_paopao')
let paoaoParent = pg.view.find(this, 'layer_game/bg/paopao')
let newPaoPao = cc.instantiate(paoaoParent)
pg.view.touchOn(newPaoPao, this.touchPaoPao, this)
let paopao = newPaoPao.getChildByName("bubble")
let broken = newPaoPao.getChildByName("bubble_broken")
let btn = cc.tween(bottom_megaphone)
......@@ -71,13 +72,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg.view.visible(newPaoPao, true)
pg.view.visible(broken, false)
// 点击泡泡
pg.view.touchOn(newPaoPao, this.touchPaoPao, this)
cc.tween(newPaoPao).to(0.8, {opacity: 255}).call(() => {
let positionY = Math.floor(Math.random()*300)
cc.tween(newPaoPao).to(0.8, { opacity: 255 }).call(() => {
let positionY = Math.floor(Math.random() * 300)
let positionX = this.getPositionX()
cc.tween(newPaoPao).to(positionY/this.speed, {x: positionX, y: positionY, scale: 3}).call(() => {
if(newPaoPao.y < cc.winSize.height + 105) {
cc.tween(newPaoPao).to((750-newPaoPao.y)/this.speed, {y: cc.winSize.height + 105}).call(() => {
cc.tween(newPaoPao).to(positionY / this.speed, { x: positionX, y: positionY, scale: 3 }).call(() => {
if (newPaoPao.y < cc.winSize.height + 105) {
cc.tween(newPaoPao).to((750 - newPaoPao.y) / this.speed, { y: cc.winSize.height + 105 }).call(() => {
newPaoPao.destroy()
}).start()
}
......@@ -88,10 +88,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
getPositionX() {
if(Math.random() < 0.5) {
return - Math.floor(Math.random()*900)
if (Math.random() < 0.5) {
return - Math.floor(Math.random() * 900)
} else {
return Math.floor(Math.random()*900)
return Math.floor(Math.random() * 900)
}
}
// 点击泡泡
......
......@@ -76,10 +76,10 @@
<div class="model-content">
<div style="padding: 10px;background-color: #fff;">
<div class="border-dashed" style="margin: 20px;width: 1000px;">
<!-- <div class="border-dashed" style="margin: 20px;width: 1000px;">
<span style="font-size: 20px;">标题: </span>
<input type="text" nz-input [(ngModel)]="item.title" (blur)="save()">
<!-- <span style="font-size: 20px;">题目说明: </span>
<span style="font-size: 20px;">题目说明: </span>
<input type="text" nz-input [(ngModel)]="item.questionText" (blur)="save()">
<span style="font-size: 20px;">题目说明音频: </span>
<div style="display:flex ;">
......@@ -90,23 +90,23 @@
<div style="margin: 5px">
<span>{{ item.audioName}}</span>
</div>
</div> -->
</div>
</div>
<div class="border-dashed" style="margin: 20px;width: 1000px;">
<div style="font-size: 20px;">游戏模式: </div>
<nz-radio-group [(ngModel)]="item.recordFlag" (ngModelChange)="save()">
<nz-radio-group [(ngModel)]="item.onlineFlg" (ngModelChange)="save()">
<label nz-radio [nzValue]="true">
<span [style]="{color:item.recordFlag==true ? '#169BD5':'#000'}">录音模式</span>
<span [style]="{color:item.onlineFlg==true ? '#169BD5':'#000'}">联机版</span>
</label>
<label nz-radio [nzValue]="false">
<span [style]="{color:item.recordFlag==false ? '#169BD5':'#000'}">听音模式</span>
<span [style]="{color:item.onlineFlg==false ? '#169BD5':'#000'}">单机版</span>
</label>
</nz-radio-group>
</div>
<!-- <div class="border-dashed" style="margin: 20px;width: 1000px;">
<div class="border-dashed" style="margin: 20px;width: 1000px;">
<div class="word-input-title">
<div>
<span>游戏背景音乐: </span>
......@@ -135,12 +135,12 @@
<div *ngFor="let question of item.questions; let i = index">
<div style="display: flex;margin-top: 20px;">
<div class="border-solid" style="min-width: 1000px;">
<!-- <div class="word-type-title">
<div class="word-type-title">
题目{{i+1}}
</div> -->
</div>
<!-- <div>
<div>
<div class="word-type-option-title" style="margin-top:10px;">题目音频:</div>
<div style="display:flex ;">
<div>
......@@ -152,7 +152,7 @@
<span>{{ question.audioName}}</span>
</div>
</div>
</div> -->
</div>
<!-- <div style="margin-top:20px">
<div class="word-type-option-title">倒计时: </div>
......@@ -162,39 +162,33 @@
<div class="word-type-option-title" style="margin-top:20px;">
题目内容:
选项内容:
</div>
<div *ngFor="let option of question.options; let j = index">
<div style="display: flex;margin-top:20px">
<div class="option-title">
题目{{j+1}}
选项{{j+1}}
</div>
<div class="option-content" style="padding: 15px 30px;">
<!-- <div style="margin:-15px -30px;width: calc(100%+60px);height: 40px;padding:10px 20px;" [style]="{
<div style="margin:-15px -30px;width: calc(100%+60px);height: 40px;padding:10px 20px;" [style]="{
backgroundColor: option.right ?'#169BD5':'#eee'}">
<label nz-checkbox [(ngModel)]="option.right" (ngModelChange)="save()"
[style]="{color: option.right ?'#fff':'#000'}">正确答案</label>
</div> -->
</div>
<div style="margin-top: 20px;">
<div class="word-type-option-title">
类型:
选项类型:
</div>
<div style="margin-top: 5px;">
<nz-radio-group [(ngModel)]="option.type" (ngModelChange)="ngChange(i,j)">
<label nz-radio nzValue="img">
<span [style]="{color:option.type=='img' ? '#169BD5':'#000'}">图片</span>
</label>
<label nz-radio nzValue="img_txt">
<span [style]="{color:option.type=='img_txt' ? '#169BD5':'#000'}">图片+文本</span>
</label>
<label nz-radio nzValue="img_audio">
<span [style]="{color:option.type=='img_audio' ? '#169BD5':'#000'}">图片+音频</span>
</label>
<label nz-radio nzValue="img_txt_audio">
<span [style]="{color:option.type=='img_txt_audio' ? '#169BD5':'#000'}">图片+文本+音频</span>
<label nz-radio nzValue="txt">
<span [style]="{color:option.type=='txt' ? '#169BD5':'#000'}">文字</span>
</label>
</nz-radio-group>
</div>
......@@ -202,7 +196,7 @@
<div style="margin-top: 25px;">
<div class="option-img">
<div style="width: 200px;">
<div *ngIf="option.type=='img'" style="width: 200px;">
<span style="font-size: 20px;">图片:</span>
<app-upload-image-with-preview [picUrl]="option.image"
(imageUploaded)="onImageUploadSuccess($event, 'image',option)">
......@@ -210,13 +204,13 @@
</div>
</div>
<div class="option-text">
<div *ngIf="option.type=='img_txt'|| option.type=='img_txt_audio' " style="width: 200px">
<div *ngIf="option.type=='txt'" style="width: 200px">
<span style="font-size: 20px;">文本</span>
<input type="text" nz-input [(ngModel)]="option.text" (blur)="save()">
</div>
</div>
<div class="option-audio" *ngIf="option.type=='img_audio' || option.type=='img_txt_audio'">
<!-- <div class="option-audio">
<span style="font-size: 20px;">选项音频:</span>
<div style="display: flex">
<div>
......@@ -230,37 +224,33 @@
</span>
</div>
</div>
</div>
<div class="option-time" *ngIf="item.recordFlag==true">
<div class="word-type-option-title">录音倒计时: </div>
<input type="number" nz-input [(ngModel)]="option.duration" (blur)="save()">
<span style="font-size: 20px;">录音文本</span>
<input type="text" nz-input [(ngModel)]="option.content" (blur)="save()">
</div>
</div> -->
<!-- <div class="option-time">
</div> -->
</div>
</div>
<div class="option-btns">
<button class="btn-red" nz-button nzType="default" nzDanger (click)="removeoption(i,j)">删除题目</button>
<button class="btn-red" nz-button nzType="default" nzDanger (click)="removeoption(i,j)">删除选项</button>
<button class="btn-blue" style="margin-top: 10px;" nz-button nzType="default" nzDanger
(click)="copyOption(i,j)">复制题目</button>
(click)="copyOption(i,j)">复制选项</button>
</div>
</div>
</div>
<div style="margin-left: 69px;margin-top: 15px;">
<button class="btn-blue" nz-button nzType="default" nzDanger (click)="addoption(i)">+增加题目</button>
<button class="btn-blue" nz-button nzType="default" nzDanger (click)="addoption(i)">+增加选项</button>
</div>
</div>
<div style="margin:0 20px">
<!-- <button class="btn-red" nz-button nzType="default" nzDanger (click)="removequestion(i)">删除题目</button> -->
<button class="btn-red" nz-button nzType="default" nzDanger (click)="removequestion(i)">删除题目</button>
</div>
</div>
</div>
<!-- <button class="btn-blue" style="margin-top:10px;width: 1000px; height: 50px;" nz-button nzType="default" nzDanger
(click)="addquestion()">+增加题目</button> -->
<button class="btn-blue" style="margin-top:10px;width: 1000px; height: 50px;" nz-button nzType="default" nzDanger
(click)="addquestion()">+增加题目</button>
</div>
......
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