Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
6a0c365f
Commit
6a0c365f
authored
Mar 05, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d5996fbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Element.ts
egret/src/something/class/Element.ts
+11
-11
No files found.
egret/src/something/class/Element.ts
View file @
6a0c365f
...
...
@@ -60,18 +60,18 @@ export class Element extends eui.Component {
return
t
-
this
.
_fireworksTimer
>
2
*
1000
;
}
fire
(
type
:
ElementType
)
{
fire
(
type
:
ElementType
)
{
// zi hong huang lan lv
this
.
_fireworksTimer
=
new
Date
().
getTime
();
if
(
type
==
ElementType
.
FIREWORKS_
PIG
)
this
.
toFireworksAction
(
1
,
90
);
//pig
else
if
(
type
==
ElementType
.
FIREWORKS_
CHICKEN
)
this
.
toFireworksAction
(
91
,
180
);
//chicken
else
if
(
type
==
ElementType
.
FIREWORKS_LION
)
this
.
toFireworksAction
(
181
,
270
);
//lion
else
if
(
type
==
ElementType
.
FIREWORKS_CATTLE
)
this
.
toFireworksAction
(
271
,
360
);
//cattle
else
if
(
type
==
ElementType
.
FIREWORKS_
RABBIT
)
this
.
toFireworksAction
(
361
,
450
);
//rabbit
if
(
type
==
ElementType
.
FIREWORKS_
RABBIT
)
//rabbit 紫
this
.
toFireworksAction
(
1
,
90
);
else
if
(
type
==
ElementType
.
FIREWORKS_
PIG
)
//pig 粉
this
.
toFireworksAction
(
91
,
180
);
else
if
(
type
==
ElementType
.
FIREWORKS_LION
)
//lion 黄
this
.
toFireworksAction
(
181
,
270
);
else
if
(
type
==
ElementType
.
FIREWORKS_CATTLE
)
//cattle 蓝
this
.
toFireworksAction
(
271
,
360
);
else
if
(
type
==
ElementType
.
FIREWORKS_
CHICKEN
)
//chicken 绿
this
.
toFireworksAction
(
361
,
450
);
}
_fireworks
;
...
...
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