Commit 7851970a authored by unknown's avatar unknown

锯齿数独改好了

parent 3ab4dced
......@@ -27,11 +27,11 @@
"_active": true,
"_components": [],
"_prefab": {
"__id__": 156
"__id__": 176
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 157
"__id__": 177
},
"_id": "2fa5cb6f-32a4-47a2-afd9-b6c3532d1301"
},
......@@ -211,25 +211,25 @@
"__id__": 16
},
{
"__id__": 108
"__id__": 128
},
{
"__id__": 131
"__id__": 151
}
],
"_active": true,
"_components": [
{
"__id__": 149
"__id__": 169
},
{
"__id__": 151
"__id__": 171
},
{
"__id__": 153
"__id__": 173
},
{
"__id__": 155
"__id__": 175
}
],
"_prefab": null,
......@@ -317,7 +317,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 375,
"_orthoHeight": 375.00000000000006,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -510,19 +510,19 @@
"__id__": 22
},
{
"__id__": 49
"__id__": 69
},
{
"__id__": 91
"__id__": 111
}
],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 126
},
{
"__id__": 107
"__id__": 127
}
],
"_prefab": null,
......@@ -681,24 +681,27 @@
"_children": [
{
"__id__": 23
},
{
"__id__": 44
}
],
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 64
},
{
"__id__": 46
"__id__": 66
},
{
"__id__": 48
"__id__": 68
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"x": 40,
"y": 0,
"z": 0
},
......@@ -754,7 +757,7 @@
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"x": -40,
"y": 0,
"z": 0
},
......@@ -797,7 +800,569 @@
"__id__": 27
},
{
"__id__": 29
"__id__": 29
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "646evI4fFOV48yzYRIxIo/"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"__prefab": {
"__id__": 26
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "edhLCS+uJMHKEzBwwHV2Wf"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"__prefab": {
"__id__": 28
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 30,
"g": 37,
"b": 51,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "40x9n+v4hNCbEyZmeIvTRp"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "9ep18o/IpJzbXB54WN0F8k"
},
{
"__type__": "cc.Node",
"_name": "topSpr",
"_objFlags": 0,
"_parent": {
"__id__": 23
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
},
{
"__id__": 33
},
{
"__id__": 35
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "7c5b7XaGlJ16JIq4mvSiAh"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
},
"_enabled": true,
"__prefab": {
"__id__": 32
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "00vHrPrt1LhJqQD6PfrFPT"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
},
"_enabled": true,
"__prefab": {
"__id__": 34
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 214,
"b": 102,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "ablvhgKltIFJ4sHENEjvqn"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "66YawkDkhIhKEG5OudQYxW"
},
{
"__type__": "cc.Node",
"_name": "numLab",
"_objFlags": 0,
"_parent": {
"__id__": 23
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
},
{
"__id__": 39
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "e7TvTfE59LLoTJfupYRpCB"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"__prefab": {
"__id__": 38
},
"_contentSize": {
"__type__": "cc.Size",
"width": 22.25,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "e8cO6vi+xA/Yq04692JENZ"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
},
"_enabled": true,
"__prefab": {
"__id__": 40
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "1",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "f4YoiCaeRAo7GEgN7U2PLy"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "01UmCq4EdHFqNVV2ofmtpj"
},
{
"__type__": "cc.Toggle",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 43
}
],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"checkEvents": [],
"_isChecked": true,
"_checkMark": {
"__id__": 33
},
"_id": "fcD9ab48FL+4wEQ66L7C7K"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "028ac43h3tHd4EX1Yzc4tdg",
"handler": "onFillNumClick",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "hideTog",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [
{
"__id__": 45
},
{
"__id__": 51
},
{
"__id__": 57
}
],
"_active": true,
"_components": [
{
"__id__": 62
},
{
"__id__": 63
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 40,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "3atK0bKZZGNqbZYqYyyvsA"
},
{
"__type__": "cc.Node",
"_name": "bottomSpr",
"_objFlags": 0,
"_parent": {
"__id__": 44
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 46
},
{
"__id__": 48
},
{
"__id__": 50
}
],
"_prefab": null,
......@@ -820,25 +1385,25 @@
"y": 1,
"z": 1
},
"_layer": 33554432,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "646evI4fFOV48yzYRIxIo/"
"_id": "38e9LY9tJH95spnOl0up6y"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 45
},
"_enabled": true,
"__prefab": {
"__id__": 26
"__id__": 47
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -850,7 +1415,7 @@
"x": 0.5,
"y": 0.5
},
"_id": "edhLCS+uJMHKEzBwwHV2Wf"
"_id": "11wRfW1j9Fj4PnpV8dXJy+"
},
{
"__type__": "cc.CompPrefabInfo",
......@@ -861,11 +1426,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 45
},
"_enabled": true,
"__prefab": {
"__id__": 28
"__id__": 49
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -895,7 +1460,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "40x9n+v4hNCbEyZmeIvTRp"
"_id": "7a9IkOF/1NBrhXu30+KX1e"
},
{
"__type__": "cc.CompPrefabInfo",
......@@ -906,7 +1471,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 45
},
"_enabled": true,
"__prefab": null,
......@@ -928,26 +1493,26 @@
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "9ep18o/IpJzbXB54WN0F8k"
"_id": "3cj+44rYNK8LED7WDmvPr7"
},
{
"__type__": "cc.Node",
"_name": "topSpr",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 44
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 31
"__id__": 52
},
{
"__id__": 33
"__id__": 54
},
{
"__id__": 35
"__id__": 56
}
],
"_prefab": null,
......@@ -970,25 +1535,25 @@
"y": 1,
"z": 1
},
"_layer": 33554432,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "7c5b7XaGlJ16JIq4mvSiAh"
"_id": "6fMrfncjZOtIfCqyIcC+SP"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 51
},
"_enabled": true,
"__prefab": {
"__id__": 32
"__id__": 53
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -1000,7 +1565,7 @@
"x": 0.5,
"y": 0.5
},
"_id": "00vHrPrt1LhJqQD6PfrFPT"
"_id": "395KZduj1CapohRtINNyiJ"
},
{
"__type__": "cc.CompPrefabInfo",
......@@ -1011,11 +1576,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 51
},
"_enabled": true,
"__prefab": {
"__id__": 34
"__id__": 55
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -1045,7 +1610,7 @@
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "ablvhgKltIFJ4sHENEjvqn"
"_id": "730dEQdzpJ7oNIJJBnoKu7"
},
{
"__type__": "cc.CompPrefabInfo",
......@@ -1056,7 +1621,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 51
},
"_enabled": true,
"__prefab": null,
......@@ -1078,23 +1643,23 @@
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "66YawkDkhIhKEG5OudQYxW"
"_id": "08OmLNkdRE6YgSkUq98F7L"
},
{
"__type__": "cc.Node",
"_name": "numLab",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 44
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 37
"__id__": 58
},
{
"__id__": 39
"__id__": 60
}
],
"_prefab": null,
......@@ -1117,25 +1682,25 @@
"y": 1,
"z": 1
},
"_layer": 33554432,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "e7TvTfE59LLoTJfupYRpCB"
"_id": "83oqc0bnRMnbyT0bT1LW75"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 57
},
"_enabled": true,
"__prefab": {
"__id__": 38
"__id__": 59
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -1147,7 +1712,7 @@
"x": 0.5,
"y": 0.5
},
"_id": "e8cO6vi+xA/Yq04692JENZ"
"_id": "94LcCXe3RJ4ba/tl1A0v50"
},
{
"__type__": "cc.CompPrefabInfo",
......@@ -1158,11 +1723,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 57
},
"_enabled": true,
"__prefab": {
"__id__": 40
"__id__": 61
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -1191,7 +1756,7 @@
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": "f4YoiCaeRAo7GEgN7U2PLy"
"_id": "e9v/6qUQFGyJuKvNx1NJQP"
},
{
"__type__": "cc.CompPrefabInfo",
......@@ -1202,7 +1767,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 44
},
"_enabled": true,
"__prefab": null,
......@@ -1216,22 +1781,18 @@
"x": 0.5,
"y": 0.5
},
"_id": "01UmCq4EdHFqNVV2ofmtpj"
"_id": "17dGfJ4tpHyqs82Iv+r7Yi"
},
{
"__type__": "cc.Toggle",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 44
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 43
}
],
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
......@@ -1270,21 +1831,11 @@
"_zoomScale": 1.2,
"_target": null,
"checkEvents": [],
"_isChecked": true,
"_isChecked": false,
"_checkMark": {
"__id__": 33
},
"_id": "fcD9ab48FL+4wEQ66L7C7K"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
"__id__": 54
},
"component": "",
"_componentId": "028ac43h3tHd4EX1Yzc4tdg",
"handler": "onFillNumClick",
"customEventData": ""
"_id": "9fHXwI9+FEjLGNm8lyzQlS"
},
{
"__type__": "cc.UITransform",
......@@ -1295,11 +1846,11 @@
},
"_enabled": true,
"__prefab": {
"__id__": 45
"__id__": 65
},
"_contentSize": {
"__type__": "cc.Size",
"width": 60,
"width": 140,
"height": 60
},
"_anchorPoint": {
......@@ -1322,7 +1873,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 47
"__id__": 67
},
"_resizeMode": 1,
"_layoutType": 1,
......@@ -1372,22 +1923,22 @@
},
"_children": [
{
"__id__": 50
"__id__": 70
},
{
"__id__": 69
"__id__": 89
}
],
"_active": true,
"_components": [
{
"__id__": 88
"__id__": 108
},
{
"__id__": 89
"__id__": 109
},
{
"__id__": 90
"__id__": 110
}
],
"_prefab": null,
......@@ -1424,26 +1975,26 @@
"_name": "pencilTog",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 69
},
"_children": [
{
"__id__": 51
"__id__": 71
},
{
"__id__": 56
"__id__": 76
},
{
"__id__": 61
"__id__": 81
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 66
"__id__": 86
},
{
"__id__": 67
"__id__": 87
}
],
"_prefab": null,
......@@ -1480,16 +2031,16 @@
"_name": "bottomSpr",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 72
},
{
"__id__": 54
"__id__": 74
}
],
"_prefab": null,
......@@ -1526,11 +2077,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 71
},
"_enabled": true,
"__prefab": {
"__id__": 53
"__id__": 73
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -1553,11 +2104,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 71
},
"_enabled": true,
"__prefab": {
"__id__": 55
"__id__": 75
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -1598,16 +2149,16 @@
"_name": "topSpr",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
"__id__": 77
},
{
"__id__": 59
"__id__": 79
}
],
"_prefab": null,
......@@ -1644,11 +2195,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 58
"__id__": 78
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -1671,11 +2222,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 60
"__id__": 80
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -1716,16 +2267,16 @@
"_name": "图标_铅笔",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 82
},
{
"__id__": 64
"__id__": 84
}
],
"_prefab": null,
......@@ -1762,11 +2313,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 81
},
"_enabled": true,
"__prefab": {
"__id__": 63
"__id__": 83
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -1789,11 +2340,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 81
},
"_enabled": true,
"__prefab": {
"__id__": 65
"__id__": 85
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -1834,7 +2385,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 70
},
"_enabled": true,
"__prefab": null,
......@@ -1855,13 +2406,13 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 70
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 68
"__id__": 88
}
],
"_interactable": true,
......@@ -1904,7 +2455,7 @@
"checkEvents": [],
"_isChecked": true,
"_checkMark": {
"__id__": 59
"__id__": 79
},
"_id": "2bXxKct5dNYaELLek1Ohlc"
},
......@@ -1923,32 +2474,32 @@
"_name": "eraserTog",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 69
},
"_children": [
{
"__id__": 70
"__id__": 90
},
{
"__id__": 75
"__id__": 95
},
{
"__id__": 80
"__id__": 100
}
],
"_active": true,
"_components": [
{
"__id__": 85
"__id__": 105
},
{
"__id__": 86
"__id__": 106
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 55,
"x": 0,
"y": 0,
"z": 0
},
......@@ -1979,16 +2530,16 @@
"_name": "bottomSpr",
"_objFlags": 0,
"_parent": {
"__id__": 69
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 71
"__id__": 91
},
{
"__id__": 73
"__id__": 93
}
],
"_prefab": null,
......@@ -2025,11 +2576,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
"__id__": 90
},
"_enabled": true,
"__prefab": {
"__id__": 72
"__id__": 92
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -2052,11 +2603,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
"__id__": 90
},
"_enabled": true,
"__prefab": {
"__id__": 74
"__id__": 94
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -2097,16 +2648,16 @@
"_name": "topSpr",
"_objFlags": 0,
"_parent": {
"__id__": 69
"__id__": 89
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 76
"__id__": 96
},
{
"__id__": 78
"__id__": 98
}
],
"_prefab": null,
......@@ -2143,11 +2694,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
"__id__": 95
},
"_enabled": true,
"__prefab": {
"__id__": 77
"__id__": 97
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -2170,11 +2721,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
"__id__": 95
},
"_enabled": true,
"__prefab": {
"__id__": 79
"__id__": 99
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -2215,16 +2766,16 @@
"_name": "图标_橡皮",
"_objFlags": 0,
"_parent": {
"__id__": 69
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 101
},
{
"__id__": 83
"__id__": 103
}
],
"_prefab": null,
......@@ -2261,11 +2812,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 100
},
"_enabled": true,
"__prefab": {
"__id__": 82
"__id__": 102
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -2288,11 +2839,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 100
},
"_enabled": true,
"__prefab": {
"__id__": 84
"__id__": 104
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -2333,7 +2884,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
"__id__": 89
},
"_enabled": true,
"__prefab": null,
......@@ -2354,13 +2905,13 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
"__id__": 89
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 87
"__id__": 107
}
],
"_interactable": true,
......@@ -2403,7 +2954,7 @@
"checkEvents": [],
"_isChecked": false,
"_checkMark": {
"__id__": 78
"__id__": 98
},
"_id": "dc9N39Rv1DEq46TRlLo8uT"
},
......@@ -2422,13 +2973,13 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 69
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 190,
"width": 80,
"height": 80
},
"_anchorPoint": {
......@@ -2443,7 +2994,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 69
},
"_enabled": true,
"__prefab": null,
......@@ -2474,9 +3025,9 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 69
},
"_enabled": true,
"_enabled": false,
"__prefab": null,
"_allowSwitchOff": false,
"checkEvents": [],
......@@ -2491,19 +3042,19 @@
},
"_children": [
{
"__id__": 92
"__id__": 112
},
{
"__id__": 97
"__id__": 117
}
],
"_active": true,
"_components": [
{
"__id__": 102
"__id__": 122
},
{
"__id__": 104
"__id__": 124
}
],
"_prefab": null,
......@@ -2540,16 +3091,16 @@
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 91
"__id__": 111
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 93
"__id__": 113
},
{
"__id__": 95
"__id__": 115
}
],
"_prefab": null,
......@@ -2586,11 +3137,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
"__id__": 112
},
"_enabled": true,
"__prefab": {
"__id__": 94
"__id__": 114
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -2613,11 +3164,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
"__id__": 112
},
"_enabled": true,
"__prefab": {
"__id__": 96
"__id__": 116
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -2658,16 +3209,16 @@
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 91
"__id__": 111
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 118
},
{
"__id__": 100
"__id__": 120
}
],
"_prefab": null,
......@@ -2704,11 +3255,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 117
},
"_enabled": true,
"__prefab": {
"__id__": 99
"__id__": 119
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -2731,11 +3282,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 117
},
"_enabled": true,
"__prefab": {
"__id__": 101
"__id__": 121
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -2775,11 +3326,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 111
},
"_enabled": true,
"__prefab": {
"__id__": 103
"__id__": 123
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -2802,13 +3353,13 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 111
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 105
"__id__": 125
}
],
"_interactable": true,
......@@ -2919,22 +3470,22 @@
},
"_children": [
{
"__id__": 109
"__id__": 129
},
{
"__id__": 115
"__id__": 135
}
],
"_active": true,
"_components": [
{
"__id__": 126
"__id__": 146
},
{
"__id__": 128
"__id__": 148
},
{
"__id__": 130
"__id__": 150
}
],
"_prefab": null,
......@@ -2971,19 +3522,19 @@
"_name": "名称框",
"_objFlags": 0,
"_parent": {
"__id__": 108
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 110
"__id__": 130
},
{
"__id__": 112
"__id__": 132
},
{
"__id__": 114
"__id__": 134
}
],
"_prefab": null,
......@@ -3020,11 +3571,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 129
},
"_enabled": true,
"__prefab": {
"__id__": 111
"__id__": 131
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3047,11 +3598,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 129
},
"_enabled": true,
"__prefab": {
"__id__": 113
"__id__": 133
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -3092,7 +3643,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 129
},
"_enabled": true,
"__prefab": null,
......@@ -3121,23 +3672,23 @@
"_name": "时间框",
"_objFlags": 0,
"_parent": {
"__id__": 108
"__id__": 128
},
"_children": [
{
"__id__": 116
"__id__": 136
}
],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 141
},
{
"__id__": 123
"__id__": 143
},
{
"__id__": 125
"__id__": 145
}
],
"_prefab": null,
......@@ -3174,16 +3725,16 @@
"_name": "timeLab",
"_objFlags": 0,
"_parent": {
"__id__": 115
"__id__": 135
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 117
"__id__": 137
},
{
"__id__": 119
"__id__": 139
}
],
"_prefab": null,
......@@ -3220,11 +3771,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
"__id__": 136
},
"_enabled": true,
"__prefab": {
"__id__": 118
"__id__": 138
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3247,11 +3798,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
"__id__": 136
},
"_enabled": true,
"__prefab": {
"__id__": 120
"__id__": 140
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -3291,11 +3842,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 135
},
"_enabled": true,
"__prefab": {
"__id__": 122
"__id__": 142
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3318,11 +3869,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 135
},
"_enabled": true,
"__prefab": {
"__id__": 124
"__id__": 144
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -3363,7 +3914,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 135
},
"_enabled": true,
"__prefab": null,
......@@ -3392,11 +3943,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 128
},
"_enabled": true,
"__prefab": {
"__id__": 127
"__id__": 147
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3419,11 +3970,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 128
},
"_enabled": false,
"__prefab": {
"__id__": 129
"__id__": 149
},
"_resizeMode": 1,
"_layoutType": 1,
......@@ -3456,7 +4007,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 108
"__id__": 128
},
"_enabled": true,
"__prefab": null,
......@@ -3489,28 +4040,28 @@
},
"_children": [
{
"__id__": 132
"__id__": 152
},
{
"__id__": 137
"__id__": 157
}
],
"_active": true,
"_components": [
{
"__id__": 142
"__id__": 162
},
{
"__id__": 144
"__id__": 164
},
{
"__id__": 146
"__id__": 166
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 482.278,
"x": 456.278,
"y": 211.904,
"z": 0
},
......@@ -3541,16 +4092,16 @@
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 131
"__id__": 151
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 133
"__id__": 153
},
{
"__id__": 135
"__id__": 155
}
],
"_prefab": null,
......@@ -3587,11 +4138,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 132
"__id__": 152
},
"_enabled": true,
"__prefab": {
"__id__": 134
"__id__": 154
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3614,11 +4165,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 132
"__id__": 152
},
"_enabled": true,
"__prefab": {
"__id__": 136
"__id__": 156
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -3659,16 +4210,16 @@
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 131
"__id__": 151
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 138
"__id__": 158
},
{
"__id__": 140
"__id__": 160
}
],
"_prefab": null,
......@@ -3705,11 +4256,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 137
"__id__": 157
},
"_enabled": true,
"__prefab": {
"__id__": 139
"__id__": 159
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3732,11 +4283,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 137
"__id__": 157
},
"_enabled": true,
"__prefab": {
"__id__": 141
"__id__": 161
},
"_visFlags": 0,
"_customMaterial": null,
......@@ -3776,11 +4327,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 131
"__id__": 151
},
"_enabled": true,
"__prefab": {
"__id__": 143
"__id__": 163
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3803,16 +4354,16 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 131
"__id__": 151
},
"_enabled": true,
"__prefab": {
"__id__": 145
"__id__": 165
},
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right": 104.72199999999998,
"_right": 130.72199999999998,
"_top": 133.096,
"_bottom": 0,
"_horizontalCenter": 0,
......@@ -3838,15 +4389,15 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 131
"__id__": 151
},
"_enabled": true,
"__prefab": {
"__id__": 147
"__id__": 167
},
"clickEvents": [
{
"__id__": 148
"__id__": 168
}
],
"_interactable": true,
......@@ -3911,7 +4462,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 150
"__id__": 170
},
"_contentSize": {
"__type__": "cc.Size",
......@@ -3938,7 +4489,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 152
"__id__": 172
},
"_cameraComponent": {
"__id__": 9
......@@ -3959,7 +4510,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 154
"__id__": 174
},
"_alignFlags": 45,
"_target": null,
......@@ -3998,12 +4549,18 @@
"__id__": 22
},
"countdownLab": {
"__id__": 119
"__id__": 139
},
"remainLab": {
"__id__": 20
},
"totalTime": 100,
"hideTog": {
"__id__": 63
},
"eraserTog": {
"__id__": 106
},
"_id": "dbxV4XT8pIYbgLw0VIxwni"
},
{
......@@ -4014,16 +4571,16 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 158
"__id__": 178
},
"shadows": {
"__id__": 159
"__id__": 179
},
"_skybox": {
"__id__": 160
"__id__": 180
},
"fog": {
"__id__": 161
"__id__": 181
}
},
{
......
import { _decorator, Component, Node, instantiate, Button, Toggle, Label, director, CCFloat } from 'cc';
import { _decorator, Component, Node, instantiate, Button, Toggle, Label, director, CCFloat, find } from 'cc';
import { countdownMus, failMus, succMus } from '../../../../startFolder/script/common/AudioDef';
import { AudioMgr } from '../../../../startFolder/script/common/AudioMgr';
import { Utils } from '../../../../startFolder/script/common/Utils';
......@@ -37,6 +37,12 @@ export class SudokuCtr extends Component {
@property(CCFloat)
totalTime: number = 0;
@property(Toggle)
hideTog: Toggle = null!;
@property(Toggle)
eraserTog: Toggle = null!;
private gameState = GAME_STATE.READY;
private fillNum = 1;
private sqr = 5;
......@@ -142,6 +148,7 @@ export class SudokuCtr extends Component {
}
setNumTogs() {
this.hideTog.node.parent = find("Canvas");
while (this.numOptsNode.children.length < this.sqr) {
this.numOptsNode.addChild(instantiate(this.numOptsNode.children[0]));
}
......@@ -151,6 +158,7 @@ export class SudokuCtr extends Component {
this.numOptsNode.children[i].getComponentInChildren(Label)!.string = (i + 1) + "";
}
this.numOptsNode.children[0].getComponent(Toggle)!.isChecked = true;
this.hideTog.node.parent = this.numOptsNode;
}
gameEnd(isWin: boolean) {
......@@ -194,7 +202,8 @@ export class SudokuCtr extends Component {
onFillNumClick(err: any, numStr: string) {
this.fillNum = Number(numStr);
this.onPencilClick();
this.eraserTog.isChecked = false;
}
onPencilClick() {
......@@ -205,6 +214,7 @@ export class SudokuCtr extends Component {
onEraserClick() {
if (this.gameState != GAME_STATE.FILL) return;
this.gameState = GAME_STATE.ERASE;
this.hideTog.isChecked = true;
}
getLevelCfg(level: number) {
......
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