Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ_lite
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
middleLayer_for_NJ_lite
Commits
5c00efde
Commit
5c00efde
authored
Jan 05, 2024
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复报错卡主问题
parent
8a9586be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
middleLayer.ts
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
+10
-11
No files found.
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
View file @
5c00efde
...
@@ -788,6 +788,7 @@ export default class NewClass extends middleLayerBase {
...
@@ -788,6 +788,7 @@ export default class NewClass extends middleLayerBase {
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
if
(
type
==
0
)
{
if
(
type
==
0
)
{
// 单课件完成
btn_next
.
scale
=
0
;
btn_next
.
scale
=
0
;
btn_replay
.
scale
=
0
;
btn_replay
.
scale
=
0
;
...
@@ -810,30 +811,28 @@ export default class NewClass extends middleLayerBase {
...
@@ -810,30 +811,28 @@ export default class NewClass extends middleLayerBase {
.
to
(
0.35
,
{
scale
:
targetScale
})
.
to
(
0.35
,
{
scale
:
targetScale
})
.
call
(()
=>
{
.
call
(()
=>
{
resolve
(
true
);
resolve
(
true
);
this
.
showFinishLayer
(
-
1
);
})
})
.
start
();
.
start
();
}
else
if
(
type
==
1
)
{
}
else
if
(
type
==
1
)
{
btn_ok
.
scale
=
0
;
// 一课全部完成
finishLayer
.
active
=
true
;
finishLayer
.
active
=
true
;
aniOne
.
active
=
false
;
aniOne
.
active
=
false
;
aniAll
.
active
=
true
;
aniAll
.
active
=
true
;
btn_next
.
active
=
false
;
btn_next
.
active
=
false
;
btn_replay
.
active
=
false
;
btn_replay
.
active
=
false
;
btn_ok
.
active
=
tru
e
;
btn_ok
.
active
=
fals
e
;
aniAll
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
'
newAnimation
'
,
1
);
aniAll
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
'
newAnimation
'
,
1
);
const
targetScale
=
0.65
;
//
const targetScale = 0.65;
cc
.
tween
(
btn_ok
)
cc
.
tween
(
btn_ok
)
.
delay
(
0.4
)
.
delay
(
0.8
)
.
to
(
0.25
,
{
scale
:
targetScale
})
.
call
(()
=>
{
.
call
(()
=>
{
resolve
(
true
);
resolve
(
true
);
this
.
showFinishLayer
(
-
1
);
this
.
playFinishLayerAnim
(
-
1
);
})
})
.
start
();
.
start
();
}
else
{
}
else
{
// 隐藏全部
finishLayer
.
active
=
false
;
finishLayer
.
active
=
false
;
aniOne
.
active
=
false
;
aniOne
.
active
=
false
;
aniAll
.
active
=
false
;
aniAll
.
active
=
false
;
...
@@ -847,19 +846,19 @@ export default class NewClass extends middleLayerBase {
...
@@ -847,19 +846,19 @@ export default class NewClass extends middleLayerBase {
// 点击下一页按钮
// 点击下一页按钮
handleClickBtnFinishNext
()
{
handleClickBtnFinishNext
()
{
this
.
showFinishLayer
(
-
1
);
this
.
playFinishLayerAnim
(
-
1
);
this
.
goNextPage
();
this
.
goNextPage
();
}
}
// 点击重玩当前页按钮
// 点击重玩当前页按钮
handleClickBtnFinishReplay
()
{
handleClickBtnFinishReplay
()
{
this
.
showFinishLayer
(
-
1
);
this
.
playFinishLayerAnim
(
-
1
);
this
.
reloadBundle
();
this
.
reloadBundle
();
}
}
// 点击确定按钮
// 点击确定按钮
handleClickBtnFinishOk
()
{
handleClickBtnFinishOk
()
{
this
.
showFinishLayer
(
-
1
);
this
.
playFinishLayerAnim
(
-
1
);
}
}
isLevelActived
()
{
isLevelActived
()
{
...
...
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