Commit 2531d5be authored by wildfirecode's avatar wildfirecode

1

parent f63d56ca
...@@ -173,5 +173,10 @@ ...@@ -173,5 +173,10 @@
"backgroundType": "user", "backgroundType": "user",
"useBgImage": false, "useBgImage": false,
"useBgColor": true "useBgColor": true
},
"16cd285c715": {
"backgroundType": "user",
"useBgImage": false,
"useBgColor": true
} }
} }
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="StartPanelSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="StartPanelSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16cd285c715"/>
<e:Image source="通关条件_png" y="52" horizontalCenter="0"/> <e:Image source="通关条件_png" y="52" horizontalCenter="0"/>
<e:Label id="levelTxt" text="第一关" y="204" horizontalCenter="0" size="42"/> <e:Label id="levelTxt" text="第一关" y="204" horizontalCenter="0" size="42"/>
<e:Label id="targetTxt" text="在规定的步数内\n消除足够数量目标" y="332" width="444" x="157" textAlign="center" lineSpacing="15" verticalAlign="middle" height="156" anchorOffsetX="0" textColor="0xa32020"/> <e:Label id="targetTxt" text="在规定的步数内\n消除足够数量目标" y="332" width="444" x="157" textAlign="center" lineSpacing="15" verticalAlign="middle" height="156" anchorOffsetX="0" textColor="0xa32020"/>
<e:Button id="startBtn" label="" y="751" horizontalCenter="0"> <e:Button id="startBtn" label="" y="787" horizontalCenter="0">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="按钮_png" source.down="按钮_png" source.disabled="按钮_png"/> <e:Image width="100%" height="100%" source="按钮_png" source.down="按钮_png" source.disabled="按钮_png"/>
...@@ -35,18 +36,9 @@ ...@@ -35,18 +36,9 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Group id="nums2" x="228.03" y="682" width="70" visible="false"> <e:Label id="nums2Txt" text="888" size="26" bold="true" x="189.03" y="728.04" width="52" textAlign="center" textColor="0xc33700" verticalAlign="middle"/>
<e:Image source="数量_png" y="0" horizontalCenter="0"/> <e:Label id="nums1Txt" text="888" size="26" bold="true" x="358.99" y="728.04" width="52" textAlign="center" textColor="0xc33700" verticalAlign="middle"/>
<e:Label id="nums2Txt" text="888" horizontalCenter="0" textColor="0x683619" size="26" verticalCenter="0" bold="true"/> <e:Label id="nums3Txt" text="888" size="26" bold="true" x="518.15" y="728.04" textAlign="center" width="52" textColor="0xc33700" verticalAlign="middle"/>
</e:Group>
<e:Group id="nums1" x="390.99" y="682" width="70" visible="false">
<e:Image source="数量_png" y="0" horizontalCenter="0"/>
<e:Label id="nums1Txt" text="888" horizontalCenter="0" textColor="0x683619" size="26" verticalCenter="0" bold="true"/>
</e:Group>
<e:Group id="nums3" x="552.15" y="682" width="70" visible="false">
<e:Image source="数量_png" y="0" horizontalCenter="0"/>
<e:Label id="nums3Txt" text="888" horizontalCenter="0" textColor="0x683619" size="26" verticalCenter="0" bold="true"/>
</e:Group>
<e:Button id="closeBtn" label="" x="616" y="230"> <e:Button id="closeBtn" label="" x="616" y="230">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
......
...@@ -25,9 +25,7 @@ export default class StartPanel extends Panel { ...@@ -25,9 +25,7 @@ export default class StartPanel extends Panel {
//循环15到35 //循环15到35
mapDataIndex = data - 21 mapDataIndex = data - 21
} }
this['buy1btn'].visible = false;
this['nums1'].visible = true;
this['nums1Txt'].text = '7';
const levelType = Chapters[mapDataIndex].passTarget.type; const levelType = Chapters[mapDataIndex].passTarget.type;
if (levelType == PassType.ELEMENT_TARGET) if (levelType == PassType.ELEMENT_TARGET)
this['targetTxt'].text = '在规定步数内\n消除足够数量目标'; this['targetTxt'].text = '在规定步数内\n消除足够数量目标';
...@@ -37,12 +35,6 @@ export default class StartPanel extends Panel { ...@@ -37,12 +35,6 @@ export default class StartPanel extends Panel {
const prop2Nums = getPropNums(PropType.BOOM); const prop2Nums = getPropNums(PropType.BOOM);
const prop1Nums = getPropNums(PropType.HAMMER); const prop1Nums = getPropNums(PropType.HAMMER);
const prop3Nums = getPropNums(PropType.CHANCE_NUM); const prop3Nums = getPropNums(PropType.CHANCE_NUM);
this['buy1btn'].visible = prop1Nums <= 0;
this['nums1'].visible = prop1Nums > 0;
this['buy2btn'].visible = prop2Nums <= 0;
this['nums2'].visible = prop2Nums > 0;
this['buy3btn'].visible = prop3Nums <= 0;
this['nums3'].visible = prop3Nums > 0;
this['nums1Txt'].text = prop1Nums; this['nums1Txt'].text = prop1Nums;
this['nums2Txt'].text = prop2Nums; this['nums2Txt'].text = prop2Nums;
this['nums3Txt'].text = prop3Nums; this['nums3Txt'].text = prop3Nums;
......
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
"remainProp": [ "remainProp": [
{ {
"type": 2, "type": 2,
"num": 0 "num": 1
}, },
{ {
"type": 3, "type": 3,
"num": 0 "num": 8
}, },
{ {
"type": 4, "type": 4,
"num": 0 "num": 10
} }
], ],
"remainEnargy": 9979, "remainEnargy": 9979,
......
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