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
Expand all
Show 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
This diff is collapsed.
Click to expand it.
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