Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interactiveGames_Level
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuxing@jiuaoedu.com
interactiveGames_Level
Commits
687d2a78
Commit
687d2a78
authored
Oct 11, 2021
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数独加了一个还原按钮
parent
2b156c67
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
465 additions
and
66 deletions
+465
-66
Sudoku_1.scene
assets/sceneBundle/games/sudoku/scene/Sudoku_1.scene
+444
-63
SudokuCtr.ts
assets/sceneBundle/games/sudoku/script/SudokuCtr.ts
+4
-0
SudokuItemCtr.ts
assets/sceneBundle/games/sudoku/script/SudokuItemCtr.ts
+17
-3
No files found.
assets/sceneBundle/games/sudoku/scene/Sudoku_1.scene
View file @
687d2a78
...
@@ -24,17 +24,17 @@
...
@@ -24,17 +24,17 @@
"__id__": 7
"__id__": 7
},
},
{
{
"__id__": 1
23
"__id__": 1
38
}
}
],
],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 1
26
"__id__": 1
41
},
},
"autoReleaseAssets": false,
"autoReleaseAssets": false,
"_globals": {
"_globals": {
"__id__": 1
27
"__id__": 1
42
},
},
"_id": "2fa5cb6f-32a4-47a2-afd9-b6c3532d1301"
"_id": "2fa5cb6f-32a4-47a2-afd9-b6c3532d1301"
},
},
...
@@ -214,22 +214,22 @@
...
@@ -214,22 +214,22 @@
"__id__": 16
"__id__": 16
},
},
{
{
"__id__":
93
"__id__":
108
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
16
"__id__": 1
31
},
},
{
{
"__id__": 1
18
"__id__": 1
33
},
},
{
{
"__id__": 1
20
"__id__": 1
35
},
},
{
{
"__id__": 1
22
"__id__": 1
37
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -511,15 +511,18 @@
...
@@ -511,15 +511,18 @@
},
},
{
{
"__id__": 49
"__id__": 49
},
{
"__id__": 91
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
91
"__id__":
106
},
},
{
{
"__id__":
92
"__id__":
107
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2479,6 +2482,384 @@
...
@@ -2479,6 +2482,384 @@
"checkEvents": [],
"checkEvents": [],
"_id": "f8VCYPJn5P/IgyA7Hf4u6C"
"_id": "f8VCYPJn5P/IgyA7Hf4u6C"
},
},
{
"__type__": "cc.Node",
"_name": "resetBtn",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [
{
"__id__": 92
},
{
"__id__": 97
}
],
"_active": true,
"_components": [
{
"__id__": 102
},
{
"__id__": 104
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 267.296,
"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": "ddGTVqX7xK06DbIsTA57pu"
},
{
"__type__": "cc.Node",
"_name": "bgSpr",
"_objFlags": 0,
"_parent": {
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 93
},
{
"__id__": 95
}
],
"_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": "f67MCCHo5DR5svcTr+lria"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
},
"_enabled": true,
"__prefab": {
"__id__": 94
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "513JKg+9FLgaZhe2vPZpBJ"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
},
"_enabled": true,
"__prefab": {
"__id__": 96
},
"_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": "b7UjZhY9BND5Jdk60NONGg"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "20UGQn4U9GUoln0NJQTkbG"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 91
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 98
},
{
"__id__": 100
}
],
"_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": "440KQzOu1Ljrhxql925qpl"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_enabled": true,
"__prefab": {
"__id__": 99
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "baqsCMMZZHmIxQo7goLctk"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c68UOAlNhN171Umca6yVvF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_enabled": true,
"__prefab": {
"__id__": 101
},
"_visFlags": 0,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "还原",
"_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": "12/xFMS9FMAYaLFJODdFt5"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2frm37uaJHQr0AEEaYyM82"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
},
"_enabled": true,
"__prefab": {
"__id__": 103
},
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "acl2DGFR1BoaJ0ScPCKE1r"
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "55pCbtzR5GbojKMArZkfim"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
},
"_enabled": true,
"__prefab": null,
"clickEvents": [
{
"__id__": 105
}
],
"_interactable": true,
"_transition": 3,
"_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": 0.85,
"_target": null,
"_id": "94I6fn/dJLvr/8aPcbwy1b"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 7
},
"component": "",
"_componentId": "028ac43h3tHd4EX1Yzc4tdg",
"handler": "onResetBtn",
"customEventData": ""
},
{
{
"__type__": "cc.UITransform",
"__type__": "cc.UITransform",
"_name": "",
"_name": "",
...
@@ -2538,22 +2919,22 @@
...
@@ -2538,22 +2919,22 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
94
"__id__":
109
},
},
{
{
"__id__": 1
00
"__id__": 1
15
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
11
"__id__": 1
26
},
},
{
{
"__id__": 1
13
"__id__": 1
28
},
},
{
{
"__id__": 1
15
"__id__": 1
30
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2590,19 +2971,19 @@
...
@@ -2590,19 +2971,19 @@
"_name": "名称框",
"_name": "名称框",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
93
"__id__":
108
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
95
"__id__":
110
},
},
{
{
"__id__":
97
"__id__":
112
},
},
{
{
"__id__":
99
"__id__":
114
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2639,11 +3020,11 @@
...
@@ -2639,11 +3020,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
94
"__id__":
109
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
96
"__id__":
111
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -2666,11 +3047,11 @@
...
@@ -2666,11 +3047,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
94
"__id__":
109
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__":
98
"__id__":
113
},
},
"_visFlags": 0,
"_visFlags": 0,
"_customMaterial": null,
"_customMaterial": null,
...
@@ -2711,15 +3092,15 @@
...
@@ -2711,15 +3092,15 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
94
"__id__":
109
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
"_alignFlags":
8
,
"_alignFlags":
9
,
"_target": null,
"_target": null,
"_left": 10,
"_left": 10,
"_right": 0,
"_right": 0,
"_top":
0
,
"_top":
15.5
,
"_bottom": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_verticalCenter": 0,
...
@@ -2740,23 +3121,23 @@
...
@@ -2740,23 +3121,23 @@
"_name": "时间框",
"_name": "时间框",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
93
"__id__":
108
},
},
"_children": [
"_children": [
{
{
"__id__": 1
01
"__id__": 1
16
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
06
"__id__": 1
21
},
},
{
{
"__id__": 1
08
"__id__": 1
23
},
},
{
{
"__id__": 1
10
"__id__": 1
25
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2793,16 +3174,16 @@
...
@@ -2793,16 +3174,16 @@
"_name": "timeLab",
"_name": "timeLab",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
00
"__id__": 1
15
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
02
"__id__": 1
17
},
},
{
{
"__id__": 1
04
"__id__": 1
19
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2839,11 +3220,11 @@
...
@@ -2839,11 +3220,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
01
"__id__": 1
16
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
03
"__id__": 1
18
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -2866,11 +3247,11 @@
...
@@ -2866,11 +3247,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
01
"__id__": 1
16
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
05
"__id__": 1
20
},
},
"_visFlags": 0,
"_visFlags": 0,
"_customMaterial": null,
"_customMaterial": null,
...
@@ -2910,11 +3291,11 @@
...
@@ -2910,11 +3291,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
00
"__id__": 1
15
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
07
"__id__": 1
22
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -2937,11 +3318,11 @@
...
@@ -2937,11 +3318,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
00
"__id__": 1
15
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
09
"__id__": 1
24
},
},
"_visFlags": 0,
"_visFlags": 0,
"_customMaterial": null,
"_customMaterial": null,
...
@@ -2982,15 +3363,15 @@
...
@@ -2982,15 +3363,15 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
00
"__id__": 1
15
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
"_alignFlags": 3
2
,
"_alignFlags": 3
3
,
"_target": null,
"_target": null,
"_left": 0,
"_left": 0,
"_right": 15,
"_right": 15,
"_top":
0
,
"_top":
15.5
,
"_bottom": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_verticalCenter": 0,
...
@@ -3011,11 +3392,11 @@
...
@@ -3011,11 +3392,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
93
"__id__":
108
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
12
"__id__": 1
27
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -3038,11 +3419,11 @@
...
@@ -3038,11 +3419,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
93
"__id__":
108
},
},
"_enabled": false,
"_enabled": false,
"__prefab": {
"__prefab": {
"__id__": 1
14
"__id__": 1
29
},
},
"_resizeMode": 1,
"_resizeMode": 1,
"_layoutType": 1,
"_layoutType": 1,
...
@@ -3075,7 +3456,7 @@
...
@@ -3075,7 +3456,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
93
"__id__":
108
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -3108,7 +3489,7 @@
...
@@ -3108,7 +3489,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
17
"__id__": 1
32
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
...
@@ -3135,7 +3516,7 @@
...
@@ -3135,7 +3516,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
19
"__id__": 1
34
},
},
"_cameraComponent": {
"_cameraComponent": {
"__id__": 9
"__id__": 9
...
@@ -3156,7 +3537,7 @@
...
@@ -3156,7 +3537,7 @@
},
},
"_enabled": true,
"_enabled": true,
"__prefab": {
"__prefab": {
"__id__": 1
21
"__id__": 1
36
},
},
"_alignFlags": 45,
"_alignFlags": 45,
"_target": null,
"_target": null,
...
@@ -3195,7 +3576,7 @@
...
@@ -3195,7 +3576,7 @@
"__id__": 22
"__id__": 22
},
},
"countdownLab": {
"countdownLab": {
"__id__": 1
04
"__id__": 1
19
},
},
"remainLab": {
"remainLab": {
"__id__": 20
"__id__": 20
...
@@ -3214,10 +3595,10 @@
...
@@ -3214,10 +3595,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
24
"__id__": 1
39
},
},
{
{
"__id__": 1
25
"__id__": 1
40
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3254,7 +3635,7 @@
...
@@ -3254,7 +3635,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
23
"__id__": 1
38
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -3269,12 +3650,12 @@
...
@@ -3269,12 +3650,12 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
23
"__id__": 1
38
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
"audioSource": {
"audioSource": {
"__id__": 1
24
"__id__": 1
39
},
},
"_id": "43XyqKQo1PPp8jStX535Q5"
"_id": "43XyqKQo1PPp8jStX535Q5"
},
},
...
@@ -3286,16 +3667,16 @@
...
@@ -3286,16 +3667,16 @@
{
{
"__type__": "cc.SceneGlobals",
"__type__": "cc.SceneGlobals",
"ambient": {
"ambient": {
"__id__": 1
28
"__id__": 1
43
},
},
"shadows": {
"shadows": {
"__id__": 1
29
"__id__": 1
44
},
},
"_skybox": {
"_skybox": {
"__id__": 1
30
"__id__": 1
45
},
},
"fog": {
"fog": {
"__id__": 1
31
"__id__": 1
46
}
}
},
},
{
{
...
...
assets/sceneBundle/games/sudoku/script/SudokuCtr.ts
View file @
687d2a78
...
@@ -67,6 +67,10 @@ export class SudokuCtr extends Component {
...
@@ -67,6 +67,10 @@ export class SudokuCtr extends Component {
this
.
gameStart
();
this
.
gameStart
();
}
}
onResetBtn
(){
director
.
emit
(
"resetItem"
);
}
onDestroy
()
{
onDestroy
()
{
director
.
off
(
"sk_item_click"
,
this
.
onItemClick
,
this
);
director
.
off
(
"sk_item_click"
,
this
.
onItemClick
,
this
);
director
.
off
(
"begin_countdown_end"
);
director
.
off
(
"begin_countdown_end"
);
...
...
assets/sceneBundle/games/sudoku/script/SudokuItemCtr.ts
View file @
687d2a78
...
@@ -35,8 +35,22 @@ export class SudokuItemCtr extends Component {
...
@@ -35,8 +35,22 @@ export class SudokuItemCtr extends Component {
}
}
onItemClick
()
{
onItemClick
()
{
if
(
this
.
itemType
==
SK_ITEM_TYPE
.
INVARIABLE
)
return
;
//
if (this.itemType == SK_ITEM_TYPE.INVARIABLE) return;
director
.
emit
(
"sk_item_click"
,
this
);
director
.
emit
(
"sk_item_click"
,
this
);
director
.
on
(
"resetItem"
,
this
.
resetItem
,
this
);
}
resetItem
()
{
if
(
this
.
itemType
==
SK_ITEM_TYPE
.
INVARIABLE
)
{
this
.
numLab
.
string
=
this
.
rightNumStr
;
}
else
{
this
.
numLab
.
string
=
""
;
}
}
onDestroy
()
{
director
.
off
(
"resetItem"
,
this
.
resetItem
,
this
);
}
}
getItemType
()
{
getItemType
()
{
...
@@ -60,14 +74,14 @@ export class SudokuItemCtr extends Component {
...
@@ -60,14 +74,14 @@ export class SudokuItemCtr extends Component {
this
.
setNumStr
(
numStr
);
this
.
setNumStr
(
numStr
);
this
.
rightNumStr
=
numStr
;
this
.
rightNumStr
=
numStr
;
this
.
bgSpr
.
color
=
color
;
this
.
bgSpr
.
color
=
color
;
if
(
type
==
SK_ITEM_TYPE
.
VARIABLE
)
{
if
(
type
==
SK_ITEM_TYPE
.
VARIABLE
)
{
this
.
setNumStr
(
""
);
this
.
setNumStr
(
""
);
}
}
this
.
posIfo
=
posIfo
;
this
.
posIfo
=
posIfo
;
this
.
posIfo
.
target
=
this
.
node
;
this
.
posIfo
.
target
=
this
.
node
;
}
}
isRight
(){
isRight
()
{
return
this
.
numLab
.
string
==
this
.
rightNumStr
;
return
this
.
numLab
.
string
==
this
.
rightNumStr
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment