Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LST-06
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
LST-06
Commits
d9dbc4b7
Commit
d9dbc4b7
authored
Nov 17, 2020
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:调整最后显示的大小,去掉翻页音效
parent
c2ae5ac9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Celebrate.ts
src/app/play/Celebrate.ts
+6
-7
play.component.ts
src/app/play/play.component.ts
+1
-1
No files found.
src/app/play/Celebrate.ts
View file @
d9dbc4b7
...
@@ -21,7 +21,7 @@ export class Celebrate{
...
@@ -21,7 +21,7 @@ export class Celebrate{
const
bg
=
new
ShapeRect
();
const
bg
=
new
ShapeRect
();
this
.
bg
=
bg
;
this
.
bg
=
bg
;
bg
.
alpha
=
0
;
bg
.
alpha
=
1
;
this
.
initPic
();
this
.
initPic
();
}
}
...
@@ -52,7 +52,6 @@ export class Celebrate{
...
@@ -52,7 +52,6 @@ export class Celebrate{
show
(
mapscale
=
1
,
callback
=
null
){
show
(
mapscale
=
1
,
callback
=
null
){
let
tempScale
=
mapscale
;
this
.
pic
.
setScaleXY
(
0
);
this
.
pic
.
setScaleXY
(
0
);
...
@@ -62,13 +61,13 @@ export class Celebrate{
...
@@ -62,13 +61,13 @@ export class Celebrate{
playAudio
(
this
.
audioObj
[
'
celebrate
'
],
true
);
playAudio
(
this
.
audioObj
[
'
celebrate
'
],
true
);
tweenChange
(
this
.
pic
,
{
scaleX
:
tempScale
,
scaleY
:
tempScale
},
0.5
,
()
=>
{
tweenChange
(
this
.
pic
,
{
scaleX
:
1
,
scaleY
:
1
},
0.5
,
()
=>
{
tweenChange
(
this
.
smallStar
,
{
scaleX
:
tempScale
*
1.3
,
scaleY
:
tempScale
*
1.3
},
0.3
,
()
=>
{
tweenChange
(
this
.
smallStar
,
{
scaleX
:
1
*
1.3
,
scaleY
:
1
*
1.3
},
0.3
,
()
=>
{
tweenChange
(
this
.
smallStar
,
{
scaleX
:
tempScale
,
scaleY
:
tempScale
},
0.3
)
tweenChange
(
this
.
smallStar
,
{
scaleX
:
1
,
scaleY
:
1
},
0.3
)
});
});
tweenChange
(
this
.
bigStar
,
{
scaleX
:
tempScale
*
1.3
,
scaleY
:
tempScale
*
1.3
},
0.3
,
()
=>
{
tweenChange
(
this
.
bigStar
,
{
scaleX
:
1
*
1.3
,
scaleY
:
1
*
1.3
},
0.3
,
()
=>
{
tweenChange
(
this
.
bigStar
,
{
scaleX
:
tempScale
,
scaleY
:
tempScale
},
0.3
,
callback
)
tweenChange
(
this
.
bigStar
,
{
scaleX
:
1
,
scaleY
:
1
},
0.3
,
callback
)
});
});
})
})
}
}
...
...
src/app/play/play.component.ts
View file @
d9dbc4b7
...
@@ -842,7 +842,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -842,7 +842,7 @@ export class PlayComponent implements OnInit, OnDestroy {
const
audio
=
this
.
audioObj
[
'
exercises_
'
+
this
.
curIndex
];
const
audio
=
this
.
audioObj
[
'
exercises_
'
+
this
.
curIndex
];
this
.
stage
.
audioAni
.
playAudio
(
audio
);
this
.
stage
.
audioAni
.
playAudio
(
audio
);
if
(
this
.
curIndex
!=
0
){
if
(
this
.
curIndex
!=
0
){
this
.
playAudio
(
'
switch
'
,
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