|
@@ -315,15 +315,15 @@ export class MainPanel extends PanelBaseControl
|
|
this.signAdButton=this.SignAd.asCom.getChildAt(3) as fairygui.GButton;
|
|
this.signAdButton=this.SignAd.asCom.getChildAt(3) as fairygui.GButton;
|
|
this.signNoramButton=this.SignAd.asCom.getChildAt(4) as fairygui.GButton;
|
|
this.signNoramButton=this.SignAd.asCom.getChildAt(4) as fairygui.GButton;
|
|
this.SignDanbeiBtn = this.SignAd.asCom.getChildAt(5) as fairygui.GButton;
|
|
this.SignDanbeiBtn = this.SignAd.asCom.getChildAt(5) as fairygui.GButton;
|
|
-
|
|
|
|
this.SignTickImage.visible=(PlayerAccount.CurrentAccount.CurAccountData.ShowSign);
|
|
this.SignTickImage.visible=(PlayerAccount.CurrentAccount.CurAccountData.ShowSign);
|
|
- this.signNoramButton.visible = this.SignTickImage.visible;
|
|
|
|
- this.SignDanbeiBtn.visible = !this.signNoramButton.visible;
|
|
|
|
|
|
+ // this.signNoramButton.visible = this.SignTickImage.visible;
|
|
|
|
+ // this.SignAd.visible = false;
|
|
|
|
+ this.SignDanbeiBtn.visible = false;
|
|
|
|
|
|
this.AddEventByType( signTickButton,Laya.Event.CLICK,this,this.SignTickButtonFun );
|
|
this.AddEventByType( signTickButton,Laya.Event.CLICK,this,this.SignTickButtonFun );
|
|
this.AddEventByType( this.signAdButton,Laya.Event.CLICK,this,this.SignAdButtonFun );
|
|
this.AddEventByType( this.signAdButton,Laya.Event.CLICK,this,this.SignAdButtonFun );
|
|
- this.AddEventByType( this.signNoramButton,Laya.Event.CLICK,this,this.SignAdButtonFun );
|
|
|
|
- this.AddEventByType(this.SignDanbeiBtn,Laya.Event.CLICK,this,this.SignNormalButtonFun);
|
|
|
|
|
|
+ this.AddEventByType( this.signNoramButton,Laya.Event.CLICK,this,this.SignNormalButtonFun );
|
|
|
|
+ // this.AddEventByType(this.SignDanbeiBtn,Laya.Event.CLICK,this,this.SignNormalButtonFun);
|
|
|
|
|
|
var num=this.SignInfo["day"];
|
|
var num=this.SignInfo["day"];
|
|
var numIndex=100;
|
|
var numIndex=100;
|
|
@@ -489,8 +489,8 @@ export class MainPanel extends PanelBaseControl
|
|
private SignTickButtonFun()
|
|
private SignTickButtonFun()
|
|
{
|
|
{
|
|
this.SignTickImage.visible=!this.SignTickImage.visible;
|
|
this.SignTickImage.visible=!this.SignTickImage.visible;
|
|
- this.SignDanbeiBtn.visible = !this.SignTickImage.visible;
|
|
|
|
- this.signNoramButton.visible = this.SignTickImage.visible;
|
|
|
|
|
|
+ // this.SignDanbeiBtn.visible = !this.SignTickImage.visible;
|
|
|
|
+ // this.signNoramButton.visible = this.SignTickImage.visible;
|
|
}
|
|
}
|
|
|
|
|
|
/*点击视频双倍领取*/
|
|
/*点击视频双倍领取*/
|
|
@@ -513,13 +513,12 @@ export class MainPanel extends PanelBaseControl
|
|
{
|
|
{
|
|
this.SignAddPifu();
|
|
this.SignAddPifu();
|
|
}
|
|
}
|
|
-
|
|
|
|
this.updateUserDataHandler();
|
|
this.updateUserDataHandler();
|
|
|
|
+ SceneControl.IsShowSign=false;
|
|
|
|
+ this.SignPanel.visible = false;
|
|
|
|
+ ttad.Clear();//;y.WxApi.ShowTxt("签到成功")
|
|
}
|
|
}
|
|
-
|
|
|
|
- SceneControl.IsShowSign=false;
|
|
|
|
- this.SignPanel.visible = false;
|
|
|
|
- ttad.Clear();//;y.WxApi.ShowTxt("签到成功")
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**胜利界面广告按钮*/
|
|
/**胜利界面广告按钮*/
|
|
@@ -545,6 +544,7 @@ export class MainPanel extends PanelBaseControl
|
|
this.SignPanel.visible = false;
|
|
this.SignPanel.visible = false;
|
|
SceneControl.IsShowSign=false;
|
|
SceneControl.IsShowSign=false;
|
|
this.updateUserDataHandler();
|
|
this.updateUserDataHandler();
|
|
|
|
+ ttad.Clear();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|