Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_01
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
et_01
Commits
a9ea788b
Commit
a9ea788b
authored
Mar 08, 2021
by
智慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:解决龙骨动画播放问题
parent
db7fd314
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
et_01.fire
play/assets/et_01/scene/et_01.fire
+2
-2
et_01.js
play/assets/et_01/script/et_01.js
+5
-2
No files found.
play/assets/et_01/scene/et_01.fire
View file @
a9ea788b
...
@@ -727,7 +727,7 @@
...
@@ -727,7 +727,7 @@
}
}
],
],
"_armatureName": "armatureName",
"_armatureName": "armatureName",
"_animationName": "
normal
",
"_animationName": "",
"_preCacheMode": 0,
"_preCacheMode": 0,
"_cacheMode": 0,
"_cacheMode": 0,
"playTimes": 1,
"playTimes": 1,
...
@@ -746,7 +746,7 @@
...
@@ -746,7 +746,7 @@
"__uuid__": "86eb937d-75f7-4b71-8b1d-7c8834c1fa1b"
"__uuid__": "86eb937d-75f7-4b71-8b1d-7c8834c1fa1b"
},
},
"_N$_defaultArmatureIndex": 0,
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex":
1
,
"_N$_animationIndex":
0
,
"_N$_defaultCacheMode": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$debugBones": false,
...
...
play/assets/et_01/script/et_01.js
View file @
a9ea788b
...
@@ -84,8 +84,8 @@ cc.Class({
...
@@ -84,8 +84,8 @@ cc.Class({
getDefaultData
()
{
getDefaultData
()
{
const
dataJson
=
'
{"animationName":"DailyConversations"}
'
//
const dataJson = '{"animationName":"DailyConversations"}'
//
const dataJson = '{"animationName":"WarmUp"}'
const
dataJson
=
'
{"animationName":"WarmUp"}
'
// const dataJson = '{"animationName":"LettersInLife"}'
// const dataJson = '{"animationName":"LettersInLife"}'
// const dataJson = '{"animationName":"Phonics"}'
// const dataJson = '{"animationName":"Phonics"}'
// const dataJson = '{"animationName":"LetsBlend"}'
// const dataJson = '{"animationName":"LetsBlend"}'
...
@@ -185,6 +185,9 @@ cc.Class({
...
@@ -185,6 +185,9 @@ cc.Class({
async
showDragon
()
{
async
showDragon
()
{
const
nodeName
=
'
Canvas/
'
+
this
.
data
.
animationName
;
const
nodeName
=
'
Canvas/
'
+
this
.
data
.
animationName
;
const
animationNode
=
cc
.
find
(
nodeName
);
const
animationNode
=
cc
.
find
(
nodeName
);
var
dragonDisplay
=
animationNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
var
animNameArr
=
dragonDisplay
.
getAnimationNames
(
"
armatureName
"
);
dragonDisplay
.
playAnimation
(
animNameArr
[
0
],
1
);
animationNode
.
x
=
cc
.
find
(
'
Canvas
'
).
width
;
animationNode
.
x
=
cc
.
find
(
'
Canvas
'
).
width
;
animationNode
.
y
=
0
;
animationNode
.
y
=
0
;
...
...
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