|
@@ -27,8 +27,10 @@ export class tips_view extends Component {
|
|
this.btn_tips.off(Node.EventType.TOUCH_END)
|
|
this.btn_tips.off(Node.EventType.TOUCH_END)
|
|
this.btn_answer.off(Node.EventType.TOUCH_END)
|
|
this.btn_answer.off(Node.EventType.TOUCH_END)
|
|
this.btn_close.off(Node.EventType.TOUCH_END)
|
|
this.btn_close.off(Node.EventType.TOUCH_END)
|
|
|
|
+ this.IsShowSecondLevel = false;
|
|
this.isLookTipsVideo = false;
|
|
this.isLookTipsVideo = false;
|
|
this.isLookAnswerVideo = false;
|
|
this.isLookAnswerVideo = false;
|
|
|
|
+
|
|
this.btn_tips.on(Node.EventType.TOUCH_END,()=>{
|
|
this.btn_tips.on(Node.EventType.TOUCH_END,()=>{
|
|
if(this.isLookTipsVideo){
|
|
if(this.isLookTipsVideo){
|
|
this.showTips()
|
|
this.showTips()
|
|
@@ -37,7 +39,7 @@ export class tips_view extends Component {
|
|
if(res.isEnded){
|
|
if(res.isEnded){
|
|
this.isLookTipsVideo = true;
|
|
this.isLookTipsVideo = true;
|
|
this.showTips()
|
|
this.showTips()
|
|
- this.btn_tips.getComponent(Sprite).spriteFrame = this.sf_tips
|
|
|
|
|
|
+ this.updateBtnTipStatus()
|
|
}
|
|
}
|
|
// 统计-激励视频广告
|
|
// 统计-激励视频广告
|
|
let level_id = gameManager.Singleton.getLevelData().id
|
|
let level_id = gameManager.Singleton.getLevelData().id
|
|
@@ -56,7 +58,7 @@ export class tips_view extends Component {
|
|
if(res.isEnded){
|
|
if(res.isEnded){
|
|
this.isLookAnswerVideo = true;
|
|
this.isLookAnswerVideo = true;
|
|
this.showAnswer()
|
|
this.showAnswer()
|
|
- this.btn_answer.getComponent(Sprite).spriteFrame = this.sf_answer
|
|
|
|
|
|
+ this.updateBtnAnswerStatus()
|
|
}
|
|
}
|
|
// 统计-激励视频广告
|
|
// 统计-激励视频广告
|
|
let level_id = gameManager.Singleton.getLevelData().id
|
|
let level_id = gameManager.Singleton.getLevelData().id
|
|
@@ -82,6 +84,25 @@ export class tips_view extends Component {
|
|
gameManager.Singleton.sys_click_button_music()
|
|
gameManager.Singleton.sys_click_button_music()
|
|
})
|
|
})
|
|
this.text_view.active = false;
|
|
this.text_view.active = false;
|
|
|
|
+
|
|
|
|
+ this.updateBtnTipStatus()
|
|
|
|
+ this.updateBtnAnswerStatus()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private updateBtnTipStatus() {
|
|
|
|
+ if(this.isLookTipsVideo) {
|
|
|
|
+ this.btn_tips.getComponent(Sprite).spriteFrame = this.sf_tips
|
|
|
|
+ } else {
|
|
|
|
+ this.btn_tips.getComponent(Sprite).spriteFrame = this.sf_tips_video
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private updateBtnAnswerStatus() {
|
|
|
|
+ if(this.isLookTipsVideo) {
|
|
|
|
+ this.btn_answer.getComponent(Sprite).spriteFrame = this.sf_answer
|
|
|
|
+ } else {
|
|
|
|
+ this.btn_answer.getComponent(Sprite).spriteFrame = this.sf_answer_video
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
show(){
|
|
show(){
|