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
e84672cf
Commit
e84672cf
authored
Aug 23, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4d0d43fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+7
-1
home.json
mock/happyclear/home.json
+1
-1
No files found.
egret/src/mapScene/MapScene.ts
View file @
e84672cf
...
@@ -10,6 +10,7 @@ import MapRpeatPart from "./MapRpeatPart";
...
@@ -10,6 +10,7 @@ import MapRpeatPart from "./MapRpeatPart";
import
MapTopPart
from
"./MapTopPart"
;
import
MapTopPart
from
"./MapTopPart"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
export
default
class
MapScene
extends
Scene
{
export
default
class
MapScene
extends
Scene
{
scrollGroup
:
eui
.
Group
;
scrollGroup
:
eui
.
Group
;
...
@@ -47,7 +48,12 @@ export default class MapScene extends Scene {
...
@@ -47,7 +48,12 @@ export default class MapScene extends Scene {
for
(
const
key
in
MapScene
.
iconHash
)
{
for
(
const
key
in
MapScene
.
iconHash
)
{
const
element
=
MapScene
.
iconHash
[
key
];
const
element
=
MapScene
.
iconHash
[
key
];
element
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
element
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
PanelCtrl
.
instance
.
show
(
'StartPanel'
,
key
);
const
homeData
=
getHomeData
();
const
levelOrder
=
parseInt
(
key
);
if
(
homeData
.
levels
.
length
<
levelOrder
&&
levelOrder
>
1
)
{
showToast
(
'必须通关前面的关卡才能开启本关'
);
}
else
PanelCtrl
.
instance
.
show
(
'StartPanel'
,
key
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
19
))
NetManager
.
ins
.
clickLog
(
getlogItem
(
19
))
},
this
)
},
this
)
}
}
...
...
mock/happyclear/home.json
View file @
e84672cf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"data"
:
{
"data"
:
{
"wealth"
:
13
,
"wealth"
:
13
,
"totalStars"
:
120
,
"totalStars"
:
120
,
"levels"
:
[],
"levels"
:
[
{
"stars"
:
3
,
"levelNum"
:
1
},{
"stars"
:
2
,
"levelNum"
:
2
},{
"stars"
:
1
,
"levelNum"
:
3
}
],
"remainProp"
:
[],
"remainProp"
:
[],
"remainEnargy"
:
15
,
"remainEnargy"
:
15
,
"askForEnergy"
:
false
,
"askForEnergy"
:
false
,
...
...
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