wujia 7 місяців тому
батько
коміт
5fad9ff5b2

+ 5 - 10
assets/script/game/ui/login/Bulletin.ts

@@ -25,16 +25,11 @@ export class Bulletin extends BaseView {
 		super.onLoad();
 		this.closeTips.string = StringUtil.getLanguageData('点击空白关闭');
 		this.titleTx.string = StringUtil.getLanguageData('公告');
-		let twinkle = (node)=>{
-			tween(this.closeTips.getComponent(UIOpacity)).to(1.2, { opacity: 10 })
-				.call(() => {
-					tween(this.closeTips.getComponent(UIOpacity)).to(1, { opacity: 255 })
-						.call(() => {
-							twinkle(this.closeTips);
-						}).start()
-				}).start()
-		}
-		twinkle(this.closeTips);
+		tween(this.closeTips.getComponent(UIOpacity))
+			.to(1.2, { opacity: 10 })
+			.to(1, { opacity: 255 })
+			.repeatForever()
+			.start()
 	}
 
 	protected onDestroy() {

+ 5 - 10
assets/script/game/ui/mail/MailDetail.ts

@@ -71,16 +71,11 @@ export class MailDetail extends BaseView {
 		this.getTips.getComponent(Label).string = StringUtil.getLanguageData('附件已领取');
 		this.getBtnTx.string = StringUtil.getLanguageData('领取附件');
 		this.delBtnTx.string = StringUtil.getLanguageData('删除邮件');
-		let twinkle = (node)=>{
-			tween(this.closeTips.getComponent(UIOpacity)).to(1.2, { opacity: 10 })
-				.call(() => {
-					tween(this.closeTips.getComponent(UIOpacity)).to(1, { opacity: 255 })
-						.call(() => {
-							twinkle(this.closeTips);
-						}).start()
-				}).start()
-		}
-		twinkle(this.closeTips);
+		tween(this.closeTips.getComponent(UIOpacity))
+			.to(1.2, { opacity: 10 })
+			.to(1, { opacity: 255 })
+			.repeatForever()
+			.start()
 	}
 
 	onDestroy() {

+ 6 - 10
assets/script/game/ui/mail/MailMain.ts

@@ -49,16 +49,12 @@ export class MailMain extends BaseView {
 		this.noneTx.string = StringUtil.getLanguageData('当前空空如也哦~');
 		this.delAutoBtnTx.string = StringUtil.getLanguageData('一键删除');
 		this.getAutoBtnTx.string = StringUtil.getLanguageData('一键领取');
-		let twinkle = (node)=>{
-			tween(this.closeTips.getComponent(UIOpacity)).to(1.2, { opacity: 10 })
-				.call(() => {
-					tween(this.closeTips.getComponent(UIOpacity)).to(1, { opacity: 255 })
-						.call(() => {
-							twinkle(this.closeTips);
-						}).start()
-				}).start()
-		}
-		twinkle(this.closeTips);
+
+		tween(this.closeTips.getComponent(UIOpacity))
+			.to(1.2, { opacity: 10 })
+			.to(1, { opacity: 255 })
+			.repeatForever()
+			.start()
 	}
 
 	onDestroy() {