/// <summary> /// 点击邀请好友按钮 /// </summary> public void OnClickInviteBtn() { YxTools.ShareFriend ( GameData.RoomInfo.CreateRoomInfo.RoomId.ToString(), GameData.RoomInfo.Rule ); }
void AddOnClick() { ////添加返回大厅按钮的OnClick事件 _bcakButton.onClick.Add(new EventDelegate(() => { YxMessageBox.Show(new YxMessageBoxData { Msg = "确定要返回大厅吗?", IsTopShow = true, BtnStyle = YxMessageBox.LeftBtnStyle | YxMessageBox.RightBtnStyle, Listener = (box, btnName) => { if (btnName == YxMessageBox.BtnLeft) { App.QuitGame(); } }, }); } )); //微信邀请 _invitButton.onClick.Add(new EventDelegate(() => { YxTools.ShareFriend(_roomId.ToString(), _ruleInfo); })); //分享战绩 _shareButton.onClick.Add(new EventDelegate(() => { YxWindowManager.ShowWaitFor(); Facade.Instance <WeChatApi>().InitWechat(); UserController.Instance.GetShareInfo(info => { YxWindowManager.HideWaitFor(); _img.DoScreenShot(new Rect(0, 0, Screen.width, Screen.height), imageUrl => { if (Application.platform == RuntimePlatform.Android) { imageUrl = "file://" + imageUrl; } info.ImageUrl = imageUrl; info.ShareType = ShareType.Image; Facade.Instance <WeChatApi>().ShareContent(info); }); }); })); _agreeBtn.onClick.Add(new EventDelegate(() => { App.GetRServer <TexasGameServer>().DismissRoom(3); SetMannerBtn(false); })); _disagreeBtn.onClick.Add(new EventDelegate(() => { App.GetRServer <TexasGameServer>().DismissRoom(-1); SetMannerBtn(false); })); _closeBtn.onClick.Add(new EventDelegate(() => { DismissRoom.transform.GetChild(0).gameObject.SetActive(false); })); }
public void OnClickWeiChatBtn() { var CurrentGame = Manager.Data.CurrentGame; if (CurrentGame != null) { YxTools.ShareFriend(CurrentGame.ShowRoomId.ToString(), CurrentGame.RuleInfo); } }
/// <summary> /// 微信分享内容后台配置 /// </summary> public void WechatShareTempate(object data) { YxTools.ShareFriend(GameData.CreateRoomInfo.RoomId.ToString(), GameData.CreateRoomInfo.RuleInfo); }
/// <summary> /// 点击微信邀请按钮 /// </summary> public void OnClickChatInvite() { var roomInfo = App.GetGameManager <SssjpGameManager>().RoomInfo; YxTools.ShareFriend(roomInfo.RoomID.ToString(), roomInfo.RuleInfo); }
public void OnClickChatInvite() { var roomInfo = _gdata.CreateRoomInfo; YxTools.ShareFriend(roomInfo.RoomId.ToString(), roomInfo.RuleInfo); }
/// <summary> /// 点击分享按钮 /// </summary> /// <param name="roomId">房间ID</param> /// <param name="roomInfo">房间信息</param> /// <param name="gameKey"></param> public void OnClickShareBtn(string roomId, string roomInfo, string gameKey) { YxTools.ShareFriend(roomId, roomInfo, gameKey, TeaUtil.CurTeaId); }
public void OnClickChatInvitBtn() { YxTools.ShareFriend(_roomIdLabel.text, _ruleInfo.text); }
public void OnClickWeiXinChat() { var data = App.GetGameData <TtzGameData>(); YxTools.ShareFriend(data.RoomType.ToString(), data.Rule); }
public void OnWeiChatShareTableInfo(EventData evn) { YxTools.ShareFriend(_table.RoomInfo.RoomID.ToString(), _table.RoomInfo.GetRoomRuleString()); }
/// <summary> /// 微信分享内容后台配置 /// </summary> public static void WechatShareTempate() { var db = GameCenter.DataCenter; YxTools.ShareFriend(db.Room.RoomID.ToString(), db.Config.DefaultGameRule); }