Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy07_tiankong
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
hy07_tiankong
Commits
b1186fea
Commit
b1186fea
authored
Jul 12, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b96a6eff
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
409 additions
and
1988 deletions
+409
-1988
hy07_tiankong.fire
assets/hy07_tiankong/scene/hy07_tiankong.fire
+398
-1982
hy07_tiankong.ts
assets/hy07_tiankong/scene/hy07_tiankong.ts
+7
-4
defaultData_hy07_tiankong.ts
assets/hy07_tiankong/script/defaultData_hy07_tiankong.ts
+4
-2
No files found.
assets/hy07_tiankong/scene/hy07_tiankong.fire
View file @
b1186fea
This diff is collapsed.
Click to expand it.
assets/hy07_tiankong/scene/hy07_tiankong.ts
View file @
b1186fea
...
...
@@ -189,7 +189,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
data
.
wordArr
.
forEach
(
async
(
dt
)
=>
{
let
item
=
isBig
?
cc
.
instantiate
(
this
.
item4
)
:
cc
.
instantiate
(
this
.
item3
);
let
word
=
cc
.
find
(
"
word
"
,
item
);
let
xian
=
cc
.
find
(
"
xian
"
,
item
);
let
box1
=
cc
.
find
(
"
box1
"
,
item
);
// let xian = cc.find("xian", item);
word
.
getComponent
(
cc
.
Label
).
string
=
dt
.
text
.
split
(
"
"
).
join
(
""
);
item
.
active
=
true
;
item
.
parent
=
this
.
layout_up
;
...
...
@@ -201,8 +202,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
item
.
width
=
word
.
width
+
30
;
}
if
(
dt
.
block
)
{
if
(
xian
)
xian
.
active
=
true
;
//
if (xian) xian.active = true;
word
.
getComponent
(
cc
.
Label
).
string
=
""
;
}
else
{
if
(
box1
)
box1
.
active
=
true
;
}
})
this
.
layout_up
.
active
=
true
;
...
...
@@ -236,7 +239,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// this.layout_down.getComponent(cc.Layout).spacingX = 70;
}
else
{
// this.layout_down.getComponent(cc.Layout).spacingX = -100;
this
.
layout_up
.
getComponent
(
cc
.
Layout
).
spacingX
=
1
0
;
this
.
layout_up
.
getComponent
(
cc
.
Layout
).
spacingX
=
0
;
}
this
.
layout_up
.
getComponent
(
cc
.
Sprite
).
enabled
=
data
.
wordArr
.
length
>
5
;
...
...
@@ -356,7 +359,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playLocalAudio
(
"
right
"
);
cc
.
Tween
.
stopAllByTarget
(
data
.
parent
);
data
.
parent
.
setPosition
(
data
.
parentPos
);
//
data.parent.setPosition(data.parentPos);
let
word
=
cc
.
find
(
"
word
"
,
itemBg
);
...
...
assets/hy07_tiankong/script/defaultData_hy07_tiankong.ts
View file @
b1186fea
export
const
defaultData
=
{
"
npcTitle
"
:
"
tiankong
"
,
"
npcAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3
"
,
"
npcAudio
"
:
""
,
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"
npcAudioName
"
:
"
bear_2.mp3
"
,
"
title
"
:
"
排序组句
"
,
"
questions
"
:
[
...
...
@@ -23,7 +24,8 @@ export const defaultData = {
"
check
"
:
1
}
],
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/83268f4def70e408cf9243bc214592b6_l.mp3
"
,
"
audio
"
:
""
,
// "audio": "http://staging-teach.cdn.ireadabc.com/83268f4def70e408cf9243bc214592b6_l.mp3",
"
contentMain
"
:
"
what is
\n
your name?
"
,
"
text
"
:
""
,
"
audioName
"
:
"
bear_1.mp3
"
...
...
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