Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
L4R4
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
L4R4
Commits
645893b9
Commit
645893b9
authored
Nov 10, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
51e24e20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
L4R4.fire
assets/L4R4/scene/L4R4.fire
+3
-7
L4R4.ts
assets/L4R4/scene/L4R4.ts
+13
-3
No files found.
assets/L4R4/scene/L4R4.fire
View file @
645893b9
...
@@ -609,7 +609,7 @@
...
@@ -609,7 +609,7 @@
"__id__": 10
"__id__": 10
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 12
"__id__": 12
...
@@ -8354,9 +8354,7 @@
...
@@ -8354,9 +8354,7 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": null,
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillType": 0,
...
@@ -9664,9 +9662,7 @@
...
@@ -9664,9 +9662,7 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": null,
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillType": 0,
...
...
assets/L4R4/scene/L4R4.ts
View file @
645893b9
...
@@ -585,7 +585,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -585,7 +585,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
probar
.
getComponent
(
cc
.
ProgressBar
).
unscheduleAllCallbacks
();
probar
.
getComponent
(
cc
.
ProgressBar
).
unscheduleAllCallbacks
();
this
.
_coursewareStoped
();
this
.
_coursewareStoped
();
}
}
},
0.1
,
3
1
,
0.1
)
},
0.1
,
6
1
,
0.1
)
}
}
async
_startCourseware
(
word
)
{
async
_startCourseware
(
word
)
{
...
@@ -674,8 +674,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -674,8 +674,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
blueHead
=
cc
.
find
(
"
Canvas/road/blueHead
"
);
const
blueHead
=
cc
.
find
(
"
Canvas/road/blueHead
"
);
const
redHead
=
cc
.
find
(
"
Canvas/road/redHead
"
);
const
redHead
=
cc
.
find
(
"
Canvas/road/redHead
"
);
blueHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Blue
/
(
this
.
_cardList
.
length
-
1
)
;
blueHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Blue
/
10
;
redHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Red
/
(
this
.
_cardList
.
length
-
1
)
;
redHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Red
/
10
;
if
(
isRight
)
{
if
(
isRight
)
{
...
@@ -909,6 +909,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -909,6 +909,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
async
toEnd
()
{
async
toEnd
()
{
const
blueHead
=
cc
.
find
(
"
Canvas/road/blueHead
"
);
const
redHead
=
cc
.
find
(
"
Canvas/road/redHead
"
);
blueHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Blue
/
10
;
redHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Red
/
10
;
this
.
_redLb
.
string
=
`
${
this
.
_status
.
Red
}
/10`
;
this
.
_redLb
.
string
=
`
${
this
.
_status
.
Red
}
/10`
;
this
.
_blueLb
.
string
=
`
${
this
.
_status
.
Blue
}
/10`
;
this
.
_blueLb
.
string
=
`
${
this
.
_status
.
Blue
}
/10`
;
...
@@ -925,6 +930,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -925,6 +930,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// { x: pos.x, y: pos.y },
// { x: pos.x, y: pos.y },
// { easing: "cubicOut" }
// { easing: "cubicOut" }
// );
// );
if
(
this
.
isMySide
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
finish
"
,
1
);
}
else
{
}
await
asyncDelay
(
0.2
);
await
asyncDelay
(
0.2
);
}
}
...
...
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