Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LWD_2
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
LWD_2
Commits
1b98c460
Commit
1b98c460
authored
Jun 16, 2021
by
LWD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
93ad0fc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
item.js
play/assets/tmpGame/script/game/item.js
+8
-3
No files found.
play/assets/tmpGame/script/game/item.js
View file @
1b98c460
...
...
@@ -44,7 +44,7 @@ cc.Class({
//触摸移动
touchMove
:
function
(
event
)
{
if
(
this
.
node
.
isComplent
)
{
if
(
this
.
node
.
isComplent
||
this
.
_isRotate
)
{
return
}
// var posScreen = event.getLocation(); //点击事件获取位置
...
...
@@ -112,7 +112,7 @@ cc.Class({
g
.
game
.
inst
.
contentArr_1
[
1
].
getChildByName
(
"
db
"
).
active
=
true
;
g
.
game
.
inst
.
contentArr_1
[
1
].
getChildByName
(
"
db
"
).
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
if
(
g
.
game
.
inst
.
idx
==
1
)
{
if
(
this
.
node
.
width
>=
150
)
{
this
.
node
.
scale
=
0.666
;
this
.
node
.
x
=
0
;
}
...
...
@@ -141,7 +141,7 @@ cc.Class({
g
.
game
.
inst
.
contentArr_1
[
0
].
getChildByName
(
"
db
"
).
active
=
true
;
g
.
game
.
inst
.
contentArr_1
[
0
].
getChildByName
(
"
db
"
).
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
newAnimation
"
,
1
);
if
(
g
.
game
.
inst
.
idx
==
1
)
{
if
(
this
.
node
.
width
>=
150
)
{
this
.
node
.
scale
=
0.666
;
this
.
node
.
x
=
0
;
}
...
...
@@ -207,6 +207,11 @@ cc.Class({
var
scaleX
=
this
.
node
.
scaleY
;
this
.
_isRotate
=
true
;
setTimeout
(()
=>
{
this
.
_isRotate
=
false
;
},
600
)
cc
.
tween
(
this
.
node
)
.
to
(
0.3
,
{
scaleX
:
0
})
.
call
(()
=>
{
...
...
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