123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- // using ET;
- // using FairyGUI;
- // using System;
- // using System.Collections;
- // using System.Collections.Generic;
- // using UnityEngine;
- // using UnityEngine.EventSystems;
- // using System.IO;
- // using UnityEngine.Networking;
- // using cn.sharesdk.unity3d;
- // using UI.Share;
- //
- // namespace GFGGame
- // {
- // public class ShareView : BaseWindow
- // {
- // private UI_ShareUI _ui;
- //
- // public override void Dispose()
- // {
- // if (_ui != null)
- // {
- // _ui.Dispose();
- // }
- //
- // _ui = null;
- // base.Dispose();
- // }
- //
- // protected override void OnInit()
- // {
- // base.OnInit();
- // packageName = UI_ShareUI.PACKAGE_NAME;
- // _ui = UI_ShareUI.Create();
- // this.viewCom = _ui.target;
- // isfullScreen = true;
- //
- // _ui.m_btnShare.onClick.Add(BtnOnclickShare);
- // _ui.m_btnClose.onClick.Add(this.Hide);
- // _ui.m_btnShareWB.onClick.Add(BtnOnclickShareWb);
- // _ui.m_btnShareWX.onClick.Add(BtnOnClickShareWX);
- // _ui.m_btnShareQQ.onClick.Add(BtnOnClickShareQQ);
- // _ui.m_btnShareQQZone.onClick.Add(BtnOnClickShareQQPlatform);
- // _ui.m_btnShareDouYin.onClick.Add(BtnOnClickShareDouYin);
- // }
- //
- // protected override void OnShown()
- // {
- // base.OnShown();
- // _ui.m_btnShareWB.visible = false;
- // _ui.m_btnShareWX.visible = false;
- // _ui.m_btnShareQQ.visible = false;
- // _ui.m_btnShareQQZone.visible = false;
- // _ui.m_btnShareDouYin.visible = false;
- // RoleInfoManager.Instance.UpdateHead(_ui.m_head, RoleDataManager.headId, RoleDataManager.headBorderId);
- // _ui.m_levelText.text = RoleDataManager.lvl.ToString();
- // _ui.m_nameText.text = RoleDataManager.roleName;
- // ShareDataManager.Instance.group = _ui.m_shareGrade;
- // Texture2D imageText = ShareDataManager.Instance.ConvertBytesToTexture(ShareDataManager.Instance.imageBytes);
- // _ui.m_icon.texture = new NTexture(imageText);
- // }
- //
- // protected override void OnHide()
- // {
- // base.OnHide();
- // }
- //
- // private void BtnOnclickShare()
- // {
- // ShareDataManager.Instance.CaptureCameraToImage(false);
- // ShareSDKFun(PlatformType.WeChatMoments);
- // }
- //
- // private void BtnOnclickShareWb()
- // {
- // ShareDataManager.Instance.CaptureCameraToImage(false);
- // ShareSDKFun(PlatformType.SinaWeibo);
- // }
- //
- // private void BtnOnClickShareWX()
- // {
- // ShareDataManager.Instance.CaptureCameraToImage(false);
- // ShareSDKFun(PlatformType.WeChat);
- // }
- //
- // private void BtnOnClickShareQQ()
- // {
- // ShareDataManager.Instance.CaptureCameraToImage(false);
- // ShareSDKFun(PlatformType.QQ);
- // }
- //
- // private void BtnOnClickShareQQPlatform()
- // {
- // ShareDataManager.Instance.CaptureCameraToImage(false);
- // #if UNITY_ANDROID
- // ShareSDKFun(PlatformType.QQPlatform);
- // #endif
- // }
- //
- // private void BtnOnClickShareDouYin()
- // {
- // ShareDataManager.Instance.CaptureCameraToImage(false);
- // ShareSDKFun(PlatformType.Douyin);
- // }
- //
- // private void ShareSDKFun(PlatformType platformType)
- // {
- // QDShareManager.Instance.SubmitPolicyGrantResult();
- // ShareContent content = new ShareContent();
- // content.SetText("万世镜");
- // content.SetImagePath(ShareDataManager.Instance.outputImagePath);
- // content.SetTitle("wsj");
- // content.SetSite("Mob-ShareSDK");
- // content.SetComment("test description");
- // content.SetShareType(ContentType.Image);
- // QDShareManager.Instance.ShareContent(platformType, content);
- // }
- // }
- // }
|