Commit 6901cf50 authored by wildfirecode's avatar wildfirecode

1

parent 757f6d6a
......@@ -11,7 +11,8 @@ export default class Toast2 extends ComponentBase {
get skinKey(): string { return 'Toast2' }
toastLabel:eui.Label;
start() {
this.touchEnabled=false;
this.touchChildren=false;
this.toastLabel.textFlow = (new HtmlTextParser).parser('<u>继续闯关赢好礼</u>');
this.toastLabel.addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
if(SceneCtrl.instance.currentScene instanceof MainScene){
......
......@@ -44,7 +44,7 @@ export default class Buy1Panel extends Panel {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
}else {
showToast('哎呀,购买失败!\n元宝返回咯~')
showToast('元宝不足哦~\n快去玩游戏赢元宝吧');
}
}, PropType.HAMMER);//兑换道具
}
......
......@@ -39,7 +39,7 @@ export default class Buy2Panel extends Panel {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
}else{
showToast('哎呀,购买失败!\n元宝返回咯~')
showToast('元宝不足哦~\n快去玩游戏赢元宝吧');
}
}, PropType.BOOM);//兑换道具
}
......
......@@ -40,7 +40,7 @@ export default class Buy3Panel extends Panel {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
}else{
showToast('哎呀,购买失败!\n元宝返回咯~')
showToast('元宝不足哦~\n快去玩游戏赢元宝吧');
}
}, PropType.CHANCE_NUM);//兑换道具
}
......
......@@ -40,7 +40,7 @@ export default class ExchangePanel extends Panel {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
}else{
showToast('哎呀,购买失败!\n元宝返回咯~')
showToast('元宝不足哦~\n快去玩游戏赢元宝吧');
}
}, PropType.CASH_NUM);//兑换道具
}
......
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