Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game2048
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
王剑峰
game2048
Commits
2a10a741
Commit
2a10a741
authored
May 09, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
f0e7b447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
Panel.ts
module/views/Panel.ts
+11
-7
No files found.
module/views/Panel.ts
View file @
2a10a741
...
...
@@ -19,13 +19,17 @@ export class Panel extends Module {
showAni
()
{
if
(
this
.
isShowing
)
return
;
this
.
isShowing
=
true
;
let
oriY
=
this
.
y
||
0
;
this
.
y
=
-
200
;
Tween
.
get
(
this
)
.
to
({
y
:
oriY
},
500
,
Ease
.
quartOut
)
.
call
(()
=>
{
this
.
isShowing
=
false
;
})
// let oriY = this.y || 0;
// this.y = -200;
// Tween.get(this)
// .to({ y: oriY }, 500, Ease.quartOut)
// .call(() => {
// this.isShowing = false;
// })
//统一修改
this
.
anchor
.
set
(
375
,
1624
/
2
);
this
.
scale
.
set
(
0.1
,
0.1
)
Tween
.
get
(
this
).
to
({
scaleX
:
1
,
scaleY
:
1
},
500
,
Ease
.
backOut
);
}
initEvents
()
{
...
...
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