Commit 14dddb0a authored by 范雪寒's avatar 范雪寒

feat: 新增btnFinish

parent 173c7c2d
......@@ -17,16 +17,16 @@
"__id__": 2
},
{
"__id__": 104
"__id__": 107
},
{
"__id__": 106
"__id__": 109
},
{
"__id__": 108
"__id__": 111
},
{
"__id__": 110
"__id__": 113
}
],
"_active": false,
......@@ -84,19 +84,19 @@
"__id__": 3
},
{
"__id__": 93
"__id__": 96
}
],
"_active": true,
"_components": [
{
"__id__": 101
"__id__": 104
},
{
"__id__": 102
"__id__": 105
},
{
"__id__": 103
"__id__": 106
}
],
"_prefab": null,
......@@ -166,15 +166,18 @@
},
{
"__id__": 88
},
{
"__id__": 91
}
],
"_active": true,
"_components": [
{
"__id__": 91
"__id__": 94
},
{
"__id__": 92
"__id__": 95
}
],
"_prefab": null,
......@@ -4597,6 +4600,171 @@
"_originalHeight": 0,
"_id": "6ceWbVVjtO/LaU4x1jiVrQ"
},
{
"__type__": "cc.Node",
"_name": "btnNext",
"_objFlags": 0,
"_parent": {
"__id__": 3
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 92
},
{
"__id__": 93
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 238,
"height": 132
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
519,
-288,
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": "8cIyq/skROOqVSjzPJ/Gis"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "59745e46-5814-4d85-8ee0-a440b5e2bda9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "09Km8hsMZGj7C91ieglGsP"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
},
"_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": "06BaLlX4NMTathbfLsG+a6"
},
{
"__type__": "cc.Sprite",
"_name": "",
......@@ -4665,7 +4833,7 @@
},
"_children": [
{
"__id__": 94
"__id__": 97
}
],
"_active": true,
......@@ -4723,17 +4891,17 @@
"_name": "testBtn",
"_objFlags": 0,
"_parent": {
"__id__": 93
"__id__": 96
},
"_children": [
{
"__id__": 95
"__id__": 98
}
],
"_active": true,
"_components": [
{
"__id__": 100
"__id__": 103
}
],
"_prefab": null,
......@@ -4789,20 +4957,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 94
"__id__": 97
},
"_children": [
{
"__id__": 96
"__id__": 99
}
],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 101
},
{
"__id__": 99
"__id__": 102
}
],
"_prefab": null,
......@@ -4858,13 +5026,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 95
"__id__": 98
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 97
"__id__": 100
}
],
"_prefab": null,
......@@ -4920,7 +5088,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
"__id__": 99
},
"_enabled": true,
"_materials": [
......@@ -4953,7 +5121,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
"__id__": 98
},
"_enabled": true,
"_materials": [
......@@ -4985,7 +5153,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
"__id__": 98
},
"_enabled": true,
"alignMode": 0,
......@@ -5012,7 +5180,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
"__id__": 97
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5085,7 +5253,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 95
"__id__": 98
},
"_id": "0bNdPv3K1CubNfgwCtNZnD"
},
......@@ -5154,7 +5322,7 @@
"_active": true,
"_components": [
{
"__id__": 105
"__id__": 108
}
],
"_prefab": null,
......@@ -5210,7 +5378,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 107
},
"_enabled": true,
"_materials": [
......@@ -5251,7 +5419,7 @@
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 110
}
],
"_prefab": null,
......@@ -5307,7 +5475,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 106
"__id__": 109
},
"_enabled": true,
"_materials": [
......@@ -5345,7 +5513,7 @@
"_active": true,
"_components": [
{
"__id__": 109
"__id__": 112
}
],
"_prefab": null,
......@@ -5401,7 +5569,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 111
},
"_enabled": true,
"_clip": {
......@@ -5426,7 +5594,7 @@
"_active": true,
"_components": [
{
"__id__": 111
"__id__": 114
}
],
"_prefab": null,
......@@ -5482,7 +5650,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 113
},
"_enabled": true,
"_clip": {
......
......@@ -306,6 +306,19 @@ cc.Class({
starOn.opacity = 0;
starOff.opacity = 255;
}
const tipNode = cc.find('Canvas/bg/tips');
const btnNext = cc.find('Canvas/bg/btnNext');
const allOptionSelected = this._status.options.all(optionData => optionData.selected);
if (this._status.quesion.selected && allOptionSelected) {
tipNode.active = false;
btnNext.active = true;
btnNext.on('click', () => {
});
} else {
btnNext.active = false;
}
},
initOptions() {
......
{
"ver": "2.3.5",
"uuid": "f314f13e-7654-4ca3-b076-6670a4342c2e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 238,
"height": 132,
"platformSettings": {},
"subMetas": {
"btn_finish 2": {
"ver": "1.0.4",
"uuid": "59745e46-5814-4d85-8ee0-a440b5e2bda9",
"rawTextureUuid": "f314f13e-7654-4ca3-b076-6670a4342c2e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 238,
"height": 132,
"rawWidth": 238,
"rawHeight": 132,
"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