|
@@ -15,6 +15,7 @@ export class tips_view extends Component {
|
|
|
@property(Node) text_view:Node = null;
|
|
|
private mData:scene_tips_data = null;
|
|
|
private IsShowFindRuleTips:boolean = false;
|
|
|
+ private IsShowSecondLevel:boolean = false;
|
|
|
private isLookTipsVideo:boolean = false;
|
|
|
private isLookAnswerVideo:boolean = false;
|
|
|
public initView(data:scene_tips_data){
|
|
@@ -61,11 +62,16 @@ export class tips_view extends Component {
|
|
|
gameManager.Singleton.sys_click_button_music()
|
|
|
})
|
|
|
this.btn_close.on(Node.EventType.TOUCH_END,()=>{
|
|
|
- if(!this.btn_answer.active&&!this.IsShowFindRuleTips){
|
|
|
- this.show()
|
|
|
- }else{
|
|
|
- this.IsShowFindRuleTips = false;
|
|
|
+ if(this.IsShowFindRuleTips==true) {
|
|
|
+ this.IsShowFindRuleTips = false
|
|
|
this.close()
|
|
|
+ } else {
|
|
|
+ if(this.IsShowSecondLevel==true) {
|
|
|
+ this.show()
|
|
|
+ this.IsShowSecondLevel = false
|
|
|
+ } else {
|
|
|
+ this.close()
|
|
|
+ }
|
|
|
}
|
|
|
gameManager.Singleton.sys_click_button_music()
|
|
|
})
|
|
@@ -74,8 +80,12 @@ export class tips_view extends Component {
|
|
|
|
|
|
show(){
|
|
|
this.text_view.active = false;
|
|
|
- this.btn_answer.active = true;
|
|
|
this.btn_tips.active = true;
|
|
|
+ if(this.isLookTipsVideo) {
|
|
|
+ this.btn_answer.active = true;
|
|
|
+ } else {
|
|
|
+ this.btn_answer.active = false;
|
|
|
+ }
|
|
|
this.node.active = true;
|
|
|
}
|
|
|
|
|
@@ -84,6 +94,8 @@ export class tips_view extends Component {
|
|
|
}
|
|
|
|
|
|
showTips(){
|
|
|
+ this.IsShowSecondLevel = true
|
|
|
+ this.IsShowTips = true
|
|
|
this.text_view.active = true;
|
|
|
this.btn_answer.active = false;
|
|
|
this.btn_tips.active = false;
|
|
@@ -91,6 +103,8 @@ export class tips_view extends Component {
|
|
|
}
|
|
|
|
|
|
showAnswer(){
|
|
|
+ this.IsShowSecondLevel = true
|
|
|
+ this.isShowAnswer = false
|
|
|
this.text_view.active = true;
|
|
|
this.btn_answer.active = false;
|
|
|
this.btn_tips.active = false;
|