|
|
@@ -9,22 +9,26 @@ export default class ADClearSickPanel extends cc.Component {
|
|
|
@property({ type: cc.Label, tooltip: "标题" }) labTitle: cc.Label = null;
|
|
|
@property({ type: cc.Label, tooltip: "描述" }) labDes: cc.Label = null;
|
|
|
@property({ type: cc.Sprite, tooltip: "故障图标" }) sp: cc.Sprite = null;
|
|
|
+ @property({ type: cc.Label, tooltip: "按钮文字" }) labBtn: cc.Label = null;
|
|
|
|
|
|
async onLoad() {
|
|
|
switch (gData.adClearSickData.tab) {
|
|
|
case ProductType.nzw:
|
|
|
- this.labTitle.string = '农作物生虫了';
|
|
|
+ this.labTitle.string = '农作物生虫了,无法收获';
|
|
|
this.labDes.string = '看视频消灭害虫';
|
|
|
+ this.labBtn.string = '消灭害虫';
|
|
|
this.sp.spriteFrame = await mk.loader.load('game/coregame/texture/warning/warning_1', cc.SpriteFrame);
|
|
|
break;
|
|
|
case ProductType.dw:
|
|
|
- this.labTitle.string = '动物生病了';
|
|
|
- this.labDes.string = '看视频治疗动物';
|
|
|
+ this.labTitle.string = '动物生病了,无法收获';
|
|
|
+ this.labDes.string = '看视频恢复健康';
|
|
|
+ this.labBtn.string = '恢复健康';
|
|
|
this.sp.spriteFrame = await mk.loader.load('game/coregame/texture/warning/warning_2', cc.SpriteFrame);
|
|
|
break;
|
|
|
default:
|
|
|
- this.labTitle.string = '工厂出故障了';
|
|
|
- this.labDes.string = '看视频修复工厂';
|
|
|
+ this.labTitle.string = '商铺停电了,无法收获';
|
|
|
+ this.labDes.string = '看视频恢复供电';
|
|
|
+ this.labBtn.string = '恢复供电';
|
|
|
this.sp.spriteFrame = await mk.loader.load('game/coregame/texture/warning/warning_3', cc.SpriteFrame);
|
|
|
break;
|
|
|
}
|