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
aac4d300
Commit
aac4d300
authored
Aug 21, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2992daf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
MapScene.ts
egret/src/mapScene/MapScene.ts
+17
-3
No files found.
egret/src/mapScene/MapScene.ts
View file @
aac4d300
...
@@ -60,11 +60,21 @@ export default class MapScene extends Scene {
...
@@ -60,11 +60,21 @@ export default class MapScene extends Scene {
// }, 2000);
// }, 2000);
this
.
updateHomeData
();
this
.
updateHomeData
();
this
.
showLog
();
this
.
showLog
();
}
}
showLog
(){
disableIcon
(
level
)
{
this
.
setGray
(
MapScene
.
iconHash
[
level
]);
MapScene
.
starHash
[
level
].
visible
=
false
;
}
enableIcon
(
level
)
{
MapScene
.
iconHash
[
level
].
filters
=
[];
MapScene
.
starHash
[
level
].
visible
=
false
;
}
showLog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
1
));
NetManager
.
ins
.
showLog
(
getlogItem
(
1
));
NetManager
.
ins
.
showLog
(
getlogItem
(
2
));
NetManager
.
ins
.
showLog
(
getlogItem
(
2
));
NetManager
.
ins
.
showLog
(
getlogItem
(
5
));
NetManager
.
ins
.
showLog
(
getlogItem
(
5
));
...
@@ -81,8 +91,12 @@ export default class MapScene extends Scene {
...
@@ -81,8 +91,12 @@ export default class MapScene extends Scene {
for
(
let
i
=
0
;
i
<
homeData
.
levels
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
homeData
.
levels
.
length
;
i
++
)
{
const
level
=
homeData
.
levels
[
i
];
const
level
=
homeData
.
levels
[
i
];
const
star
=
MapScene
.
starHash
[
i
+
1
];
const
star
=
MapScene
.
starHash
[
i
+
1
];
if
(
level
)
if
(
level
)
{
star
.
setStar
(
level
.
stars
);
star
.
setStar
(
level
.
stars
);
this
.
enableIcon
(
level
.
levelNum
);
}
else
{
this
.
disableIcon
(
level
.
levelNum
);
}
}
}
}
}
...
...
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