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
757f6d6a
Commit
757f6d6a
authored
Nov 01, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d77d509b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Toast2.ts
egret/libs/new_wx/components/Toast2.ts
+7
-1
No files found.
egret/libs/new_wx/components/Toast2.ts
View file @
757f6d6a
import
ComponentBase
from
"./ComponentBase"
;
import
{
HtmlTextParser
}
from
"../HtmlTextParser"
;
import
{
gotoNextLevel
}
from
"../../../src/panels/gotoNextLevel"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
MainScene
from
"../../../src/mainScene/MainScene"
;
export
default
class
Toast2
extends
ComponentBase
{
...
...
@@ -12,7 +14,11 @@ export default class Toast2 extends ComponentBase {
this
.
toastLabel
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
'<u>继续闯关赢好礼</u>'
);
this
.
toastLabel
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
gotoNextLevel
();
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
){
}
else
{
gotoNextLevel
();
}
egret
.
Tween
.
removeTweens
(
this
);
this
.
alpha
=
0
;
},
this
);
...
...
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