Commit db2d92bf authored by wildfirecode's avatar wildfirecode

1

parent d91c5a57
......@@ -268,7 +268,7 @@ export default class MapScene extends Scene {
const offset =0;
const y0 = this.scroll.viewport.scrollV+offset;
const y1 = this.stage.stageHeight + this.scroll.viewport.scrollV - offset;
console.log(y0, y1);
// console.log(y0, y1);
let count = 0;
for (const key in MapScene.iconHash) {
const icon = MapScene.iconHash[key];
......@@ -403,7 +403,7 @@ export default class MapScene extends Scene {
}
enableIcon(level) {
MapScene.iconHash[level].filters = [];
this.resetGray(level);
MapScene.starHash[level].visible = true;
}
......@@ -862,6 +862,12 @@ export default class MapScene extends Scene {
(icon['bmptxt'] as eui.BitmapLabel).font = 'nums3_fnt';
}
resetGray(order: number) {
const icon = MapScene.iconHash[order];
(icon['nums'] as eui.Image).source = 'icon_png';
(icon['bmptxt'] as eui.BitmapLabel).font = 'nums_fnt';
}
get skinKey() {
return 'Map'
}
......
......@@ -109,8 +109,11 @@ export const changeMapScene = (p?) => {
SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, data);
}
let _startSceneData;
export const createData = () => {
if(_startSceneData)return _startSceneData;
const startSceneData: any = {};
_startSceneData = startSceneData;
const repeatCount =getRepeatCount();
const list = [];
......@@ -126,7 +129,8 @@ export const createData = () => {
}
startSceneData.bottom = new MapBottomPart();
startSceneData.bottom.loadSkin(); startSceneData.bottom.start({
startSceneData.bottom.loadSkin();
startSceneData.bottom.start({
repeatHeight:list[0].height,
topHeight:startSceneData.top.height
});
......
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