Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op68_plus_new
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
op68_plus_new
Commits
788b31e9
Commit
788b31e9
authored
Jan 13, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2d362bb8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
403 additions
and
362 deletions
+403
-362
op68_plus_new.fire
assets/op68_plus_new/scene/op68_plus_new.fire
+387
-356
op68_plus_new.ts
assets/op68_plus_new/scene/op68_plus_new.ts
+10
-0
defaultData.ts
assets/op68_plus_new/script/defaultData.ts
+6
-6
No files found.
assets/op68_plus_new/scene/op68_plus_new.fire
View file @
788b31e9
This diff is collapsed.
Click to expand it.
assets/op68_plus_new/scene/op68_plus_new.ts
View file @
788b31e9
...
@@ -286,6 +286,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -286,6 +286,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
this
.
playLocalAudio
(
"
right
"
);
this
.
playLocalAudio
(
"
right
"
);
if
(
question
.
type
==
"
txt
"
)
{
if
(
question
.
type
==
"
txt
"
)
{
this
.
addTxteImg
(
item
);
cc
.
tween
(
target
).
to
(
0.5
,
{
scale
:
1.2
}).
to
(
0.2
,
{
scale
:
0.5
}).
call
(()
=>
{
cc
.
tween
(
target
).
to
(
0.5
,
{
scale
:
1.2
}).
to
(
0.2
,
{
scale
:
0.5
}).
call
(()
=>
{
this
.
wordRight
(
item
).
then
(()
=>
{
this
.
wordRight
(
item
).
then
(()
=>
{
this
.
hideTop
(
card
);
this
.
hideTop
(
card
);
...
@@ -307,6 +308,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -307,6 +308,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
}).
start
();
}).
start
();
}
}
private
addTxteImg
(
item
)
{
let
node
=
new
cc
.
Node
();
node
.
addComponent
(
cc
.
Sprite
);
pg
.
view
.
setNetImg
(
node
,
this
.
cardInfo
.
picUrl
,
{
w
:
110
,
h
:
114
});
let
layout_img
=
cc
.
find
(
"
layout_img
"
,
item
);
node
.
parent
=
layout_img
;
let
scale
=
layout_img
.
parent
.
scale
node
.
scale
=
scale
<
0.9
?
0.9
:
scale
;
}
private
wordRight
(
item
)
{
private
wordRight
(
item
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
layout_word
=
cc
.
find
(
"
layout_word
"
,
item
);
let
layout_word
=
cc
.
find
(
"
layout_word
"
,
item
);
...
...
assets/op68_plus_new/script/defaultData.ts
View file @
788b31e9
...
@@ -19,42 +19,42 @@ export const defaultData = {
...
@@ -19,42 +19,42 @@ export const defaultData = {
{
{
"
type
"
:
"
img
"
,
"
type
"
:
"
img
"
,
"
text
"
:
"
1
"
,
"
text
"
:
"
1
"
,
"
image
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/5835aa41da46fd1e9d3aab12e8510051.png
"
,
"
audio
"
:
""
,
"
audio
"
:
""
,
"
idx
"
:
"
1
"
"
idx
"
:
"
1
"
},
},
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
txt
"
,
"
text
"
:
"
1
"
,
"
text
"
:
"
1
"
,
"
image
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/5835aa41da46fd1e9d3aab12e8510051.png
"
,
"
audio
"
:
""
,
"
audio
"
:
""
,
"
idx
"
:
"
1
"
"
idx
"
:
"
1
"
},
},
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
txt
"
,
"
text
"
:
"
2
"
,
"
text
"
:
"
2
"
,
"
image
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/5835aa41da46fd1e9d3aab12e8510051.png
"
,
"
audio
"
:
""
,
"
audio
"
:
""
,
"
idx
"
:
"
2
"
"
idx
"
:
"
2
"
},
},
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
txt
"
,
"
text
"
:
"
3
"
,
"
text
"
:
"
3
"
,
"
image
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/5835aa41da46fd1e9d3aab12e8510051.png
"
,
"
audio
"
:
""
,
"
audio
"
:
""
,
"
idx
"
:
"
3
"
"
idx
"
:
"
3
"
},
},
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
txt
"
,
"
text
"
:
"
2
"
,
"
text
"
:
"
2
"
,
"
image
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/5835aa41da46fd1e9d3aab12e8510051.png
"
,
"
audio
"
:
""
,
"
audio
"
:
""
,
"
idx
"
:
"
2
"
"
idx
"
:
"
2
"
},
},
{
{
"
type
"
:
"
txt
"
,
"
type
"
:
"
txt
"
,
"
text
"
:
"
4
"
,
"
text
"
:
"
4
"
,
"
image
"
:
""
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/5835aa41da46fd1e9d3aab12e8510051.png
"
,
"
audio
"
:
""
,
"
audio
"
:
""
,
"
idx
"
:
"
4
"
"
idx
"
:
"
4
"
}
}
...
...
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