Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Sbox_FT_11
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
Sbox_FT_11
Commits
54470875
Commit
54470875
authored
Dec 15, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消预乘
parent
dda96c61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
ItemAnswer.js
play/assets/tmpGame/script/ItemAnswer.js
+3
-8
ItemQuestion.js
play/assets/tmpGame/script/ItemQuestion.js
+2
-6
No files found.
play/assets/tmpGame/script/ItemAnswer.js
View file @
54470875
...
...
@@ -50,7 +50,6 @@ cc.Class({
}
},
loadDragonBone
()
{
GameData
.
dragonBoneCount
++
;
this
.
dragonBone
.
dragonAtlasAsset
=
null
;
this
.
dragonBone
.
dragonAsset
=
null
;
this
.
dragonBone
.
armatureName
=
''
;
...
...
@@ -87,13 +86,9 @@ cc.Class({
}
this
.
dragonBone
.
armatureName
=
data
.
name
;
this
.
animationName
=
data
.
animation
[
0
].
name
;
GameData
.
dragonBoneCount
--
;
if
(
GameData
.
dragonBoneCount
==
0
)
{
this
.
dragonBone
.
premultipliedAlpha
=
true
;
atlas
.
texture
.
setPremultiplyAlpha
(
true
);
}
// this.dragonBone.premultipliedAlpha = true;
// atlas.texture.setPremultiplyAlpha(true);
}
});
}
...
...
play/assets/tmpGame/script/ItemQuestion.js
View file @
54470875
...
...
@@ -31,7 +31,6 @@ cc.Class({
},
loadDragonBone
()
{
GameData
.
dragonBoneCount
++
;
this
.
dragonBone
.
dragonAtlasAsset
=
null
;
this
.
dragonBone
.
dragonAsset
=
null
;
this
.
dragonBone
.
armatureName
=
''
;
...
...
@@ -73,11 +72,8 @@ cc.Class({
this
.
dragonBone
.
armatureName
=
data
.
name
;
this
.
animationName
=
data
.
animation
[
0
].
name
;
GameData
.
dragonBoneCount
--
;
if
(
GameData
.
dragonBoneCount
==
0
)
{
this
.
dragonBone
.
premultipliedAlpha
=
true
;
atlas
.
texture
.
setPremultiplyAlpha
(
true
);
}
// this.dragonBone.premultipliedAlpha = true;
// atlas.texture.setPremultiplyAlpha(true);
}
});
}
...
...
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