Commit aac4d300 authored by wildfirecode's avatar wildfirecode

1

parent 2992daf5
...@@ -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);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment