| | |
| | | @property(cc.Node) |
| | | moregamesNode: cc.Node = null; |
| | | |
| | | @property(cc.Node) |
| | | accountNode: cc.Node = null; |
| | | |
| | | |
| | | shopLayer: ShopLayer = null; |
| | | private leng: number = 100; |
| | |
| | | this.checkShowButtonShow(); |
| | | } |
| | | |
| | | onPrivacyPolicyLinkClicked() { |
| | | qg && qg.openDeeplink({ |
| | | uri: 'https://www.yujigames.com/privacy_cn.html', |
| | | params: { |
| | | ___PARAM_LAUNCH_NATIVE_FLAG___: 'newTask' |
| | | } |
| | | }); |
| | | } |
| | | |
| | | onClickAccount(){ |
| | | this.accountNode.active = true; |
| | | } |
| | | |
| | | checkShowButtonShow() { |
| | | if (Sdk.isToutiao){ |
| | | if (Sdk.isToutiao) { |
| | | this.shopButtonNode.active = false; |
| | | }else{ |
| | | } else { |
| | | Sdk.ins.isPaymentReady((ready) => { |
| | | if (ready) {//payment ready |
| | | this.shopButtonNode.active = true; |
| | |
| | | |
| | | this.buyBallTipNode.active = (Userdata.Gem >= Global.SKIN_COST); |
| | | |
| | | if (Sdk.isToutiao){ |
| | | if (Sdk.isToutiao) { |
| | | this.moregamesNode.active = SdkToutiao.isSupportMoreGames(); |
| | | } |
| | | } |
| | |
| | | onClickShare() { |
| | | SoundManager.playButton(); |
| | | |
| | | if (Sdk.isToutiao){ |
| | | if (Sdk.isToutiao) { |
| | | SdkToutiao.share(); |
| | | }else{ |
| | | } else { |
| | | let screenShot = cc.find('ScreenShot'); |
| | | if (screenShot) { |
| | | cc.log('menu share found screenshot'); |
| | |
| | | } |
| | | } |
| | | |
| | | onClickMoreGames(){ |
| | | onClickMoreGames() { |
| | | SoundManager.playButton(); |
| | | if (Sdk.isToutiao){ |
| | | if (Sdk.isToutiao) { |
| | | SdkToutiao.showMoreGames(); |
| | | } |
| | | } |
| | | |
| | | onClickFollow(){ |
| | | onClickFollow() { |
| | | SoundManager.playButton(); |
| | | if (Sdk.isToutiao){ |
| | | if (Sdk.isToutiao) { |
| | | SdkToutiao.showFollow(); |
| | | } |
| | | } |
| | | |
| | | onClickShortcut(){ |
| | | onClickShortcut() { |
| | | SoundManager.playButton(); |
| | | if (Sdk.isToutiao){ |
| | | if (Sdk.isToutiao) { |
| | | SdkToutiao.addShortcut(); |
| | | } |
| | | } |