Пример #1
0
        /// <summary>
        /// 处理点击关闭按钮
        /// </summary>
        void HandleCloseBtn()
        {
            GameData        gd   = GameData.Instance;
            CustomPanelData bspd = gd.CustomPanelData;

            bspd.PanelShow = false;
            UpdateShow();
        }
Пример #2
0
        /// <summary>
        /// 关闭如何关注微信公众号
        /// </summary>
        public void BtnCloseWhatWx()
        {
            SystemMgr.Instance.AudioSystem.PlayAuto(AudioSystem.AudioType.VIEW_CLOSE);
            CustomPanelData bspd = GameData.Instance.CustomPanelData;

            bspd.isPanelWtWx = false;
            Messenger_anhui.Broadcast(MESSAGE_WHATWX);
        }
Пример #3
0
        /// <summary>
        /// 处理点击玩法收集按钮
        /// </summary>
        void HandleMethodCollect()
        {
            GameData        gd   = GameData.Instance;
            CustomPanelData bspd = gd.CustomPanelData;

            bspd.isShowMethodCollect = true;
            bspd.isShowCustomSever   = false;
            UpdateShow();
        }
Пример #4
0
        /// <summary>
        /// 点击反馈按钮
        /// </summary>
        void HandleCustomSeverBtn()
        {
            GameData        gd   = GameData.Instance;
            CustomPanelData bspd = gd.CustomPanelData;

            bspd.PanelShow = true;

            SystemMgr.Instance.CustomSystem.UpdateShow();
        }
Пример #5
0
        /// <summary>
        /// 面板的更新显示
        /// </summary>
        ///

        public void UpdateShow()
        {
            GameData        gd   = GameData.Instance;
            CustomPanelData bspd = gd.CustomPanelData;

            if (bspd.PanelShow)
            {
                gameObject.SetActive(true);
                GameData.Instance.isShowQuitPanel = false;
            }
            else
            {
                GameData.Instance.isShowQuitPanel = true;
                gameObject.SetActive(false);
            }
        }
Пример #6
0
        internal void OnPointerUp(GameObject go)
        {
            CustomPanelData          cd = GameData.Instance.CustomPanelData;
            MainViewCustomSeverPanel cp = UIMainView.Instance.CustomSeverPanel;
            int   num    = 3;//滑动总个数
            float oriPos = GameData.Instance.CustomPanelData.oriPos;
            float upPos  = cp.gameObj_ShowGroup.transform.localPosition.x;
            float lenth  = cp.gameObj_ShowGroup.GetComponent <RectTransform>().sizeDelta.x;

            cd.indexCurrent = upPos - cd.downPos >= 0 ? cd.indexCurrent - 1 : cd.indexCurrent + 1;
            cd.indexCurrent = cd.indexCurrent > num ? num : cd.indexCurrent;
            cd.indexCurrent = cd.indexCurrent < 1 ? 1 : cd.indexCurrent;

            switch (cd.indexCurrent)
            {
            case 1:
                cp.text_detal.text      = "点击微信 右上角 “+” 添加友好";
                cp.toggle_point[0].isOn = true;
                cp.gameObj_ShowGroup.transform.DOLocalMoveX(oriPos, 0.3f);
                break;

            case 2:
                cp.text_detal.text      = "点击“公众号”";
                cp.toggle_point[1].isOn = true;
                cp.gameObj_ShowGroup.transform.DOLocalMoveX(oriPos - lenth / 3, 0.3f);
                break;

            case 3:
                cp.text_detal.text      = "输入 双喜麻将 点击 搜索结果 关注 双喜麻将";
                cp.toggle_point[2].isOn = true;
                cp.gameObj_ShowGroup.transform.DOLocalMoveX(oriPos - lenth / 3 * 2, 0.3f);
                break;

            default:
                break;
            }
        }
Пример #7
0
        internal void OnPointerDown(GameObject go)
        {
            CustomPanelData cd = GameData.Instance.CustomPanelData;

            cd.downPos = UIMainView.Instance.CustomSeverPanel.gameObj_ShowGroup.transform.localPosition.x;
        }