Commit a50b350b authored by 张华挺's avatar 张华挺

main

parent 06bdf838
......@@ -111,6 +111,10 @@
{
"keys": "购买锤子_png,购买炸弹_png,购买步数增加_png,yuanbaoBuyBtn_png,kanshipinmianfeihuoqu_png",
"name": "videobuy"
},
{
"name": "preload",
"keys": "chongxinchuangguan1_png,chongxinchuangguan2_png,chongxinchuangguan3_png"
}
],
"resources": [
......@@ -2930,6 +2934,21 @@
"url": "assets/prize/prizePanelbg.png",
"type": "image",
"name": "prizePanelbg_png"
},
{
"name": "chongxinchuangguan1_png",
"type": "image",
"url": "assets/faild/chongxinchuangguan1.png"
},
{
"name": "chongxinchuangguan2_png",
"type": "image",
"url": "assets/faild/chongxinchuangguan2.png"
},
{
"name": "chongxinchuangguan3_png",
"type": "image",
"url": "assets/faild/chongxinchuangguan3.png"
}
]
}
\ No newline at end of file
......@@ -11,15 +11,42 @@
</e:skinName>
</e:Button>
<e:Button id="againBtn" label="" y="736" horizontalCenter="0">
<e:Button id="againBtn3" label="" y="736" horizontalCenter="0">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="chongxinchuangguan_png" source.down="chongxinchuangguan_png" source.disabled="chongxinchuangguan_png"/>
<e:Image width="100%" height="100%" source="chongxinchuangguan3_png" source.down="chongxinchuangguan3_png" source.disabled="chongxinchuangguan3_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="againBtn2" label="" y="736" horizontalCenter="0" visible="false">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="chongxinchuangguan2_png" source.down="chongxinchuangguan2_png" source.disabled="chongxinchuangguan2_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="againBtn1" label="" y="736" horizontalCenter="0" visible="false">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="chongxinchuangguan1_png" source.down="chongxinchuangguan1_png" source.disabled="chongxinchuangguan1_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="againBtn" label="" y="736" horizontalCenter="0" visible="false">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="chongxinchuangguan_png" source.down="chongxinchuangguan_png" source.disabled="chongxinchuangguan_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="videoBtn" label="" y="617.5" horizontalCenter="0" visible="false">
<e:skinName>
<e:Skin states="up,down,disabled">
......
......@@ -46,6 +46,23 @@ export default class FailedPanel extends Panel {
window["slotid"]
)
}, this);
// 增加重新闯关倒计时
let time = 3
let againTimer = setInterval(() => {
time--
if (time > 0) {
this[`againBtn${time + 1}`].visible = false
this[`againBtn${time}`].visible = true
} else {
this['againBtn1'].visible = false
this['againBtn'].visible = true
clearInterval(againTimer)
time = 3
}
}, 1000)
} else {
this['againBtn'].visible = true
this['againBtn3'].visible = false
}
}
......
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