Commit f09b2dae authored by zjz1994's avatar zjz1994

地图优化暂存

parent 41b020e6
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
window['imgver'] = '11112'; window['imgver'] = '11112';
//top 8 ,repeat 22 , bottom 3 //top 8 ,repeat 22 , bottom 3
window['total_level'] = 8 + 3 + 22 * 33; window['total_level'] = 8 + 3 + 22 * 33;
window['last_level'] = 725; window['last_level'] = 737;
var sharePic = document.getElementById('pic'); var sharePic = document.getElementById('pic');
sharePic.onclick = function () { sharePic.onclick = function () {
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="StarSkin" width="76" height="31" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="StarSkin" width="76" height="31" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Image source="无星星_png" horizontalCenter="0" verticalCenter="0"/> <e:Image source="无星星_png" horizontalCenter="0" verticalCenter="0" touchEnabled="false"/>
<e:Image id="star1" source="有星星_png" horizontalCenter="0" verticalCenter="0" visible="false"/> <e:Image id="star1" source="有星星_png" horizontalCenter="0" verticalCenter="0" visible="false"/>
<e:Image id="star2" source="有星星2_png" horizontalCenter="0" verticalCenter="0" visible="false"/> <e:Image id="star2" source="有星星2_png" horizontalCenter="0" verticalCenter="0" visible="false"/>
<e:Image id="star3" source="有星星3_png" horizontalCenter="0" verticalCenter="0" visible="false"/> <e:Image id="star3" source="有星星3_png" horizontalCenter="0" verticalCenter="0" visible="false"/>
......
...@@ -17,12 +17,13 @@ export default class MapBottomPart extends ComponentBase { ...@@ -17,12 +17,13 @@ export default class MapBottomPart extends ComponentBase {
const star = new MapStarComp(); const star = new MapStarComp();
star.loadSkin(); star.start(); star.loadSkin(); star.start();
const icon = this.getIcon(i); const icon = this.getIcon(i);
icon.addChild(star);
icon.show = ()=>{icon.visible = true;}; icon.show = ()=>{icon.visible = true;};
icon.hide = ()=>{icon.visible = false;}; icon.hide = ()=>{icon.visible = false;};
icon['nums'] = icon.getChildAt(0); icon['nums'] = icon.getChildAt(0);
icon['bmptxt']=icon.getChildAt(1); icon['bmptxt']=icon.getChildAt(1);
icon.addChildAt(star,0);
icon['starsp'] = star; icon['starsp'] = star;
icon.touchEnabled = true; icon.touchEnabled = true;
......
...@@ -22,12 +22,14 @@ export default class MapRpeatPart extends ComponentBase { ...@@ -22,12 +22,14 @@ export default class MapRpeatPart extends ComponentBase {
const star = new MapStarComp(); const star = new MapStarComp();
star.loadSkin(); star.start(); star.loadSkin(); star.start();
const icon = this.getIcon(i); const icon = this.getIcon(i);
icon.addChild(star);
icon.show = ()=>{icon.visible = true;}; icon.show = ()=>{icon.visible = true;};
icon.hide = ()=>{icon.visible = false;}; icon.hide = ()=>{icon.visible = false;};
icon['nums'] = icon.getChildAt(0); icon['nums'] = icon.getChildAt(0);
icon['bmptxt']=icon.getChildAt(1); icon['bmptxt']=icon.getChildAt(1);
icon.addChildAt(star,0);
icon['starsp'] = star; icon['starsp'] = star;
// icon.hide(); // icon.hide();
......
This diff is collapsed.
...@@ -23,6 +23,8 @@ export default class MapStarComp extends ComponentBase { ...@@ -23,6 +23,8 @@ export default class MapStarComp extends ComponentBase {
} else if(num == 3) { } else if(num == 3) {
this['star3'].visible = true; this['star3'].visible = true;
} }
this['star1'].touchEnabled = this['star2'].touchEnabled
= this['star3'].touchEnabled = false;
} }
get skinKey(): string { get skinKey(): string {
......
...@@ -12,12 +12,13 @@ export default class MapTopPart extends ComponentBase { ...@@ -12,12 +12,13 @@ export default class MapTopPart extends ComponentBase {
const star = new MapStarComp(); const star = new MapStarComp();
star.loadSkin(); star.start(); star.loadSkin(); star.start();
const icon = this.getIcon(i); const icon = this.getIcon(i);
icon.addChild(star);
icon.show = ()=>{icon.visible = true;}; icon.show = ()=>{icon.visible = true;};
icon.hide = ()=>{icon.visible = false;}; icon.hide = ()=>{icon.visible = false;};
icon['nums'] = icon.getChildAt(0); icon['nums'] = icon.getChildAt(0);
icon['bmptxt']=icon.getChildAt(1); icon['bmptxt']=icon.getChildAt(1);
icon.addChildAt(star,0);
icon['starsp'] = star; icon['starsp'] = star;
icon.touchEnabled = true; icon.touchEnabled = true;
......
...@@ -3617,7 +3617,7 @@ ...@@ -3617,7 +3617,7 @@
{ {
"levelNum": 721, "levelNum": 721,
"maxScore": 47440, "maxScore": 47440,
"stars": 1 "stars": 3
}, },
{ {
"levelNum": 722, "levelNum": 722,
...@@ -3627,7 +3627,42 @@ ...@@ -3627,7 +3627,42 @@
{ {
"levelNum": 723, "levelNum": 723,
"maxScore": 47440, "maxScore": 47440,
"stars": 3
},
{
"levelNum": 724,
"maxScore": 47440,
"stars": 2
},
{
"levelNum": 725,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 726,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 727,
"maxScore": 47440,
"stars": 3
},
{
"levelNum": 728,
"maxScore": 47440,
"stars": 1 "stars": 1
},
{
"levelNum": 729,
"maxScore": 47440,
"stars": 3
},
{
"levelNum": 730,
"maxScore": 47440,
"stars": 2
} }
], ],
"remainProp": [ "remainProp": [
......
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