Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
f5f93e3e
Commit
f5f93e3e
authored
Dec 17, 2018
by
张超
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转盘动画优化1:2圈打底>3圈打底 时间3>4S 2:点击按钮即开始动画
parent
8159675b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
RotatePanel.ts
egret/libs/new_wx/components/RotatePanel.ts
+2
-1
No files found.
egret/libs/new_wx/components/RotatePanel.ts
View file @
f5f93e3e
...
@@ -36,11 +36,12 @@ export default class RotatePannel extends Panel {
...
@@ -36,11 +36,12 @@ export default class RotatePannel extends Panel {
if
(
!
this
.
check
())
return
;
if
(
!
this
.
check
())
return
;
this
.
closeBtns
.
forEach
(
btn
=>
btn
.
touchEnabled
=
false
);
this
.
closeBtns
.
forEach
(
btn
=>
btn
.
touchEnabled
=
false
);
this
[
'rotateStart'
].
touchEnabled
=
false
;
this
[
'rotateStart'
].
touchEnabled
=
false
;
this
.
showAnimation
(
3000
,
720
,
false
,
egret
.
Ease
.
sineIn
,
null
)
submitAfterDostart
((
status
,
data
)
=>
{
submitAfterDostart
((
status
,
data
)
=>
{
let
prizeName
=
data
.
lottery
?
data
.
lottery
.
name
:
''
let
prizeName
=
data
.
lottery
?
data
.
lottery
.
name
:
''
this
.
prizeIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
name
===
prizeName
)
this
.
prizeIndex
=
this
.
optionList
.
findIndex
(
item
=>
item
.
name
===
prizeName
)
let
deg
=
this
.
prizeIndex
>
-
1
?
180
-
this
.
prizeIndex
*
45
:
-
22.5
let
deg
=
this
.
prizeIndex
>
-
1
?
180
-
this
.
prizeIndex
*
45
:
-
22.5
this
.
showAnimation
(
3000
,
720
+
deg
,
false
,
egret
.
Ease
.
sineIn
Out
,
()
=>
{
this
.
showAnimation
(
4000
,
1080
+
deg
,
false
,
egret
.
Ease
.
sine
Out
,
()
=>
{
wait
(
300
).
then
(()
=>
{
wait
(
300
).
then
(()
=>
{
if
(
gameIsWinning
())
{
if
(
gameIsWinning
())
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PRIZE_PANEL
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PRIZE_PANEL
);
...
...
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