Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn08_juzi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
sn08_juzi
Commits
77f08c29
Commit
77f08c29
authored
Sep 21, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2413df18
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
248 additions
and
149 deletions
+248
-149
ysmsyt.ttf
assets/sn08_juzi/fonts/ysmsyt.ttf
+0
-0
ysmsyt.ttf.meta
assets/sn08_juzi/fonts/ysmsyt.ttf.meta
+5
-0
sn08_juzi.fire
assets/sn08_juzi/scene/sn08_juzi.fire
+226
-130
sn08_juzi.ts
assets/sn08_juzi/scene/sn08_juzi.ts
+16
-18
form.component.html
form/src/app/form/form.component.html
+1
-1
No files found.
assets/sn08_juzi/fonts/ysmsyt.ttf
0 → 100644
View file @
77f08c29
File added
assets/sn08_juzi/fonts/ysmsyt.ttf.meta
0 → 100644
View file @
77f08c29
{
"ver": "1.1.0",
"uuid": "32a07afb-a7de-49ad-afa5-5151a4f801df",
"subMetas": {}
}
\ No newline at end of file
assets/sn08_juzi/scene/sn08_juzi.fire
View file @
77f08c29
...
...
@@ -75,37 +75,37 @@
"__id__": 5
},
{
"__id__": 1
5
"__id__": 1
7
},
{
"__id__": 2
2
"__id__": 2
4
},
{
"__id__": 3
0
"__id__": 3
2
},
{
"__id__": 4
3
"__id__": 4
5
},
{
"__id__": 5
1
"__id__": 5
3
},
{
"__id__": 5
4
"__id__": 5
6
},
{
"__id__": 5
7
"__id__": 5
9
}
],
"_active": true,
"_components": [
{
"__id__": 6
2
"__id__": 6
4
},
{
"__id__": 6
3
"__id__": 6
5
},
{
"__id__": 6
4
"__id__": 6
6
}
],
"_prefab": null,
...
...
@@ -266,10 +266,10 @@
"__id__": 6
},
{
"__id__":
9
"__id__":
11
},
{
"__id__": 1
0
"__id__": 1
2
}
],
"_active": false,
...
...
@@ -332,6 +332,9 @@
"_children": [
{
"__id__": 7
},
{
"__id__": 9
}
],
"_active": true,
...
...
@@ -477,6 +480,99 @@
"_N$cacheMode": 0,
"_id": "f49NRI5YFFEoPxDgXlMSeS"
},
{
"__type__": "cc.Node",
"_name": "ysmsyt",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_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": "0fgipBQUBBZIIx00io+ZXY"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "32a07afb-a7de-49ad-afa5-5151a4f801df"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d40PW/cqtDvrzjTAE39kJj"
},
{
"__type__": "cc.Node",
"_name": "img",
...
...
@@ -544,10 +640,10 @@
},
"_children": [
{
"__id__": 1
1
"__id__": 1
3
},
{
"__id__": 1
3
"__id__": 1
5
}
],
"_active": true,
...
...
@@ -605,13 +701,13 @@
"_name": "error",
"_objFlags": 0,
"_parent": {
"__id__": 1
0
"__id__": 1
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
2
"__id__": 1
4
}
],
"_prefab": null,
...
...
@@ -667,7 +763,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
1
"__id__": 1
3
},
"_enabled": true,
"_clip": {
...
...
@@ -686,13 +782,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 1
0
"__id__": 1
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
4
"__id__": 1
6
}
],
"_prefab": null,
...
...
@@ -748,7 +844,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
3
"__id__": 1
5
},
"_enabled": true,
"_clip": {
...
...
@@ -771,16 +867,16 @@
},
"_children": [
{
"__id__": 1
6
"__id__": 1
8
},
{
"__id__":
19
"__id__":
21
}
],
"_active": true,
"_components": [
{
"__id__": 2
1
"__id__": 2
3
}
],
"_prefab": null,
...
...
@@ -836,16 +932,16 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 1
5
"__id__": 1
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
7
"__id__": 1
9
},
{
"__id__":
18
"__id__":
20
}
],
"_prefab": null,
...
...
@@ -901,7 +997,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
6
"__id__": 1
8
},
"_enabled": true,
"_materials": [
...
...
@@ -933,7 +1029,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
6
"__id__": 1
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -960,13 +1056,13 @@
"_name": "bg_img",
"_objFlags": 0,
"_parent": {
"__id__": 1
5
"__id__": 1
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 2
0
"__id__": 2
2
}
],
"_prefab": null,
...
...
@@ -1022,7 +1118,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
19
"__id__":
21
},
"_enabled": true,
"_materials": [
...
...
@@ -1054,7 +1150,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
5
"__id__": 1
7
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1084,20 +1180,20 @@
"__id__": 2
},
"_children": [
{
"__id__": 23
},
{
"__id__": 25
},
{
"__id__": 27
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__":
29
"__id__":
31
}
],
"_prefab": null,
...
...
@@ -1153,13 +1249,13 @@
"_name": "layout_up",
"_objFlags": 0,
"_parent": {
"__id__": 2
2
"__id__": 2
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
4
"__id__": 2
6
}
],
"_prefab": null,
...
...
@@ -1186,7 +1282,7 @@
"ctor": "Float64Array",
"array": [
0,
2
46
,
2
70
,
0,
0,
0,
...
...
@@ -1215,7 +1311,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
3
"__id__": 2
5
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1247,13 +1343,13 @@
"_name": "layout_down",
"_objFlags": 0,
"_parent": {
"__id__": 2
2
"__id__": 2
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
8
}
],
"_prefab": null,
...
...
@@ -1280,7 +1376,7 @@
"ctor": "Float64Array",
"array": [
0,
9
.939,
31
.939,
0,
0,
0,
...
...
@@ -1309,7 +1405,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
7
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1341,13 +1437,13 @@
"_name": "box_up",
"_objFlags": 0,
"_parent": {
"__id__": 2
2
"__id__": 2
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
28
"__id__":
30
}
],
"_prefab": null,
...
...
@@ -1374,7 +1470,7 @@
"ctor": "Float64Array",
"array": [
0,
-2
81.294
,
-2
18
,
0,
0,
0,
...
...
@@ -1403,7 +1499,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
7
"__id__": 2
9
},
"_enabled": true,
"_layoutSize": {
...
...
@@ -1435,7 +1531,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
2
"__id__": 2
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -1465,14 +1561,14 @@
"__id__": 2
},
"_children": [
{
"__id__": 31
},
{
"__id__": 33
},
{
"__id__": 35
},
{
"__id__": 37
}
],
"_active": false,
...
...
@@ -1507,8 +1603,8 @@
0,
0,
1,
1
,
1
,
0.92
,
0.92
,
1
]
},
...
...
@@ -1530,13 +1626,13 @@
"_name": "bg_blank",
"_objFlags": 0,
"_parent": {
"__id__": 3
0
"__id__": 3
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
2
"__id__": 3
4
}
],
"_prefab": null,
...
...
@@ -1592,7 +1688,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
1
"__id__": 3
3
},
"_enabled": true,
"_materials": [
...
...
@@ -1624,13 +1720,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 3
0
"__id__": 3
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
4
"__id__": 3
6
}
],
"_prefab": null,
...
...
@@ -1686,7 +1782,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
3
"__id__": 3
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1718,23 +1814,23 @@
"_name": "laba",
"_objFlags": 0,
"_parent": {
"__id__": 3
0
"__id__": 3
2
},
"_children": [
{
"__id__": 36
},
{
"__id__": 38
},
{
"__id__": 40
},
{
"__id__": 42
}
],
"_active": true,
"_components": [
{
"__id__": 4
2
"__id__": 4
4
}
],
"_prefab": null,
...
...
@@ -1790,13 +1886,13 @@
"_name": "icon_laba1",
"_objFlags": 0,
"_parent": {
"__id__": 3
5
"__id__": 3
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
7
"__id__": 3
9
}
],
"_prefab": null,
...
...
@@ -1852,7 +1948,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
6
"__id__": 3
8
},
"_enabled": true,
"_materials": [
...
...
@@ -1884,13 +1980,13 @@
"_name": "icon_laba2",
"_objFlags": 0,
"_parent": {
"__id__": 3
5
"__id__": 3
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
39
"__id__":
41
}
],
"_prefab": null,
...
...
@@ -1946,7 +2042,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
38
"__id__":
40
},
"_enabled": true,
"_materials": [
...
...
@@ -1978,13 +2074,13 @@
"_name": "icon_laba3",
"_objFlags": 0,
"_parent": {
"__id__": 3
5
"__id__": 3
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
1
"__id__": 4
3
}
],
"_prefab": null,
...
...
@@ -2040,7 +2136,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
0
"__id__": 4
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2072,7 +2168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
5
"__id__": 3
7
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2143,20 +2239,20 @@
"__id__": 2
},
"_children": [
{
"__id__": 44
},
{
"__id__": 46
},
{
"__id__": 48
},
{
"__id__": 50
}
],
"_active": false,
"_components": [
{
"__id__": 5
0
"__id__": 5
2
}
],
"_prefab": null,
...
...
@@ -2212,13 +2308,13 @@
"_name": "icon_laba1",
"_objFlags": 0,
"_parent": {
"__id__": 4
3
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
5
"__id__": 4
7
}
],
"_prefab": null,
...
...
@@ -2274,7 +2370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
4
"__id__": 4
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2306,13 +2402,13 @@
"_name": "icon_laba2",
"_objFlags": 0,
"_parent": {
"__id__": 4
3
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
7
"__id__": 4
9
}
],
"_prefab": null,
...
...
@@ -2368,7 +2464,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
6
"__id__": 4
8
},
"_enabled": true,
"_materials": [
...
...
@@ -2400,13 +2496,13 @@
"_name": "icon_laba3",
"_objFlags": 0,
"_parent": {
"__id__": 4
3
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
49
"__id__":
51
}
],
"_prefab": null,
...
...
@@ -2462,7 +2558,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
48
"__id__":
50
},
"_enabled": true,
"_materials": [
...
...
@@ -2494,7 +2590,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
3
"__id__": 4
5
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -2568,10 +2664,10 @@
"_active": false,
"_components": [
{
"__id__": 5
2
"__id__": 5
4
},
{
"__id__": 5
3
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -2585,8 +2681,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
75.7
,
"height": 1
34
"width": 2
54.8
,
"height": 1
08
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2627,7 +2723,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
1
"__id__": 5
3
},
"_enabled": true,
"_materials": [
...
...
@@ -2643,7 +2739,7 @@
"_lineHeight": 100,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "
4e023ddb-7ee9-411d-a69a-d5bb0cd536e9
"
"__uuid__": "
32a07afb-a7de-49ad-afa5-5151a4f801df
"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
...
...
@@ -2654,7 +2750,7 @@
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode":
0
,
"_N$cacheMode":
2
,
"_id": "e7/x8Ts0FJBbG+UWuFyPiN"
},
{
...
...
@@ -2662,7 +2758,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
1
"__id__": 5
3
},
"_enabled": true,
"_color": {
...
...
@@ -2686,10 +2782,10 @@
"_active": false,
"_components": [
{
"__id__": 5
5
"__id__": 5
7
},
{
"__id__": 5
6
"__id__": 5
8
}
],
"_prefab": null,
...
...
@@ -2703,8 +2799,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
75.7
,
"height": 1
34
"width": 2
54.8
,
"height": 1
08
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2745,7 +2841,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
4
"__id__": 5
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2761,7 +2857,7 @@
"_lineHeight": 100,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "
4e023ddb-7ee9-411d-a69a-d5bb0cd536e9
"
"__uuid__": "
32a07afb-a7de-49ad-afa5-5151a4f801df
"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
...
...
@@ -2772,7 +2868,7 @@
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode":
0
,
"_N$cacheMode":
2
,
"_id": "3dP9UhFrZAdKGbk2/P3wgC"
},
{
...
...
@@ -2780,7 +2876,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
4
"__id__": 5
6
},
"_enabled": true,
"_color": {
...
...
@@ -2802,16 +2898,16 @@
},
"_children": [
{
"__id__":
58
"__id__":
60
}
],
"_active": false,
"_components": [
{
"__id__": 6
0
"__id__": 6
2
},
{
"__id__": 6
1
"__id__": 6
3
}
],
"_prefab": null,
...
...
@@ -2825,8 +2921,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
69.7
,
"height": 1
2
8
"width": 2
54.8
,
"height": 1
0
8
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2867,13 +2963,13 @@
"_name": "right_ske",
"_objFlags": 0,
"_parent": {
"__id__": 5
7
"__id__": 5
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
59
"__id__":
61
}
],
"_prefab": null,
...
...
@@ -2929,7 +3025,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
58
"__id__":
60
},
"_enabled": true,
"_materials": [
...
...
@@ -2969,7 +3065,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
7
"__id__": 5
9
},
"_enabled": true,
"_materials": [
...
...
@@ -2985,7 +3081,7 @@
"_lineHeight": 100,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "
4e023ddb-7ee9-411d-a69a-d5bb0cd536e9
"
"__uuid__": "
32a07afb-a7de-49ad-afa5-5151a4f801df
"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
...
...
@@ -2996,7 +3092,7 @@
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode":
0
,
"_N$cacheMode":
2
,
"_id": "cdPXqdkSVPKZvNRn9+xAbe"
},
{
...
...
@@ -3004,17 +3100,17 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
7
"__id__": 5
9
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r":
38
,
"g":
170
,
"b": 1
08
,
"r":
184
,
"g":
216
,
"b": 1
66
,
"a": 255
},
"_width":
1
,
"_width":
4
,
"_id": "fbjNMpx0pGHoXD/uEHTDxA"
},
{
...
...
@@ -3070,31 +3166,31 @@
},
"_enabled": true,
"layout_game": {
"__id__": 2
2
"__id__": 2
4
},
"layout_up": {
"__id__": 2
3
"__id__": 2
5
},
"layout_qe": {
"__id__": 2
5
"__id__": 2
7
},
"layout_op": {
"__id__": 2
7
"__id__": 2
9
},
"item1": {
"__id__": 3
0
"__id__": 3
2
},
"item2": {
"__id__": 4
3
"__id__": 4
5
},
"item_op": {
"__id__": 5
1
"__id__": 5
3
},
"item_qeN": {
"__id__": 5
4
"__id__": 5
6
},
"item_qeR": {
"__id__": 5
7
"__id__": 5
9
},
"_id": "f0hLmf9nhJx6afTFheWM4S"
}
...
...
assets/sn08_juzi/scene/sn08_juzi.ts
View file @
77f08c29
...
...
@@ -208,36 +208,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
layout_qe
.
removeAllChildren
();
data
.
contentArr
.
forEach
((
dt
,
idx
)
=>
{
let
item
=
dt
.
block
?
cc
.
instantiate
(
this
.
item_qeR
)
:
cc
.
instantiate
(
this
.
item_qeN
);
let
item
=
cc
.
instantiate
(
this
.
item_qeN
);
item
.
getComponent
(
cc
.
Label
).
string
=
dt
.
text
;
item
.
active
=
true
;
// item.getComponent(cc.Label)._forceUpdateRenderData(true);
item
.
parent
=
this
.
layout_qe
;
// this.layout_qe.getComponent(cc.Layout).updateLayout();
if
(
dt
.
block
)
{
let
ri
=
cc
.
instantiate
(
this
.
item_qeR
);
ri
.
parent
=
item
;
this
.
wordItams
.
push
(
item
);
item
.
getComponent
(
cc
.
Label
).
enabled
=
false
;
ri
.
getComponent
(
cc
.
Label
).
string
=
dt
.
text
;
ri
.
getComponent
(
cc
.
Label
).
enabled
=
false
;
ri
.
active
=
true
;
}
item
.
data
=
dt
.
text
.
split
(
"
"
).
join
(
""
);;
})
// this.layout_qe.getComponent(cc.Layout).updateLayout();
// let width = this.layout_qe.width;
// if (width < 1450) {
// this.layout_qe.getComponent(cc.Layout).type = cc.Layout.Type.HORIZONTAL;
// }
// this.layout_qe.getComponent(cc.Layout).updateLayout();
this
.
layout_op
.
removeAllChildren
();
data
.
optionList
.
forEach
((
dt
,
idx
)
=>
{
let
item
=
cc
.
instantiate
(
this
.
item_op
);
// let width = this.layout_op.width;
// item.getComponent(cc.Label)._forceUpdateRenderData(true);
// if (width > 1400) {
// this.layout_op.getComponent(cc.Layout).type = cc.Layout.Type.GRID;
// }
item
.
parent
=
this
.
layout_op
;
// this.layout_op.getComponent(cc.Layout).updateLayout();
this
.
iniItem
(
item
,
dt
.
txt
)
})
this
.
layout_op
.
getComponent
(
cc
.
Layout
).
updateLayout
();
...
...
@@ -327,9 +319,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
}
this
.
playLocalAudio
(
"
right
"
);
let
right_ske
=
cc
.
find
(
"
right_ske
"
,
itemBg
);
let
item_right
=
cc
.
find
(
"
item_right
"
,
itemBg
);
item_right
.
getComponent
(
cc
.
Label
).
enabled
=
true
;
itemBg
.
getComponent
(
cc
.
Label
).
enabled
=
false
;
let
right_ske
=
cc
.
find
(
"
right_ske
"
,
item_right
);
right_ske
.
active
=
true
;
target
.
parent
=
null
;
target
.
destroy
();
itemBg
.
getComponent
(
cc
.
Label
).
enabled
=
true
;
...
...
@@ -345,7 +342,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
checkIsEnd
()
{
let
count
=
0
;
this
.
wordItams
.
forEach
((
ch
)
=>
{
if
(
ch
.
getComponent
(
cc
.
Label
).
enabled
)
count
++
let
item_right
=
cc
.
find
(
"
item_right
"
,
ch
);
if
(
item_right
&&
item_right
.
getComponent
(
cc
.
Label
).
enabled
)
count
++
})
return
count
>=
this
.
wordItams
.
length
;
}
...
...
form/src/app/form/form.component.html
View file @
77f08c29
...
...
@@ -149,7 +149,7 @@
</div>
<div
class=
"border-dashed"
style=
"margin-top: 20px;width: 800px;"
>
<h2>
点击文本设置
空格
:
</h2>
<h2>
点击文本设置
挖空项
:
</h2>
<span
*
ngFor=
"let cont of question.contentArr; let i = index"
style=
"margin-bottom: 5px; "
>
<span
style=
"font-size: 40px;"
*
ngIf=
"cont.block"
class=
"option-title-line"
(
click
)="
onBlock
(
cont
,
false
)"
[
innerHtml
]="
cont
.
text
"
></span>
...
...
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