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
96b98936
Commit
96b98936
authored
Aug 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0de990b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+8
-8
home.json
mock/happyclear/home.json
+1
-1
No files found.
egret/src/mapScene/MapScene.ts
View file @
96b98936
...
...
@@ -26,7 +26,7 @@ export default class MapScene extends Scene {
super
.
start
();
// setTimeout(() => {
//
getShowOffPic(this.stage,this
)
//
PanelCtrl.instance.show('failed',{level:1}
)
// }, 2000);
this
.
_data
=
data
;
//滚动的背景变黑
...
...
egret/src/panels/FailedPanel.ts
View file @
96b98936
...
...
@@ -10,17 +10,17 @@ export default class FailedPanel extends Panel {
if
(
data
)
this
.
_level
=
parseInt
(
data
.
level
+
''
);
NetManager
.
ins
.
hc_home
(()
=>
{
},
window
[
'collectRuleId'
]);
}
onTouchTap_closeBtn
()
{
super
.
onTouchTap_closeBtn
();
if
(
this
.
_level
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
{
level
:
this
.
_level
});
else
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
);
this
[
'againBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
this
.
hidePanel
();
if
(
this
.
_level
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
{
level
:
this
.
_level
});
else
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
);
},
this
);
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]
,
this
[
'againBtn'
]
]
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'Fail'
}
}
\ No newline at end of file
mock/happyclear/home.json
View file @
96b98936
...
...
@@ -22,7 +22,7 @@
"num"
:
0
}
],
"remainEnargy"
:
0
,
"remainEnargy"
:
1
0
,
"askForEnergy"
:
false
,
"canReceiveTreasureBoxNum"
:
10
,
"nextRangeStarsNum"
:
150
...
...
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