예제 #1
0
 //关闭 列表
 private void BaseButtonEvnet2()
 {
     if (isBase == false)
     {
         if (isBaseStatr)
         {
             Debug.Log("isBaseStatr");
             isBaseStatr = false;
             Vector3   v            = Vector3.zero;
             SUIButton tmpSUIButton = HomePageChildDictionary["BaseButton"].GetComponent <SUIButton>();
             if (isBase)
             {
                 v = new Vector3(0, 0, 90);
             }
             else
             {
                 v = new Vector3(0, 0, -90);
             }
             tmpSUIButton.Rotate("default", v, 0.5f, EndBase);
             sUImenu.AnimPlay(isBase);
             isBase = !isBase;
         }
     }
 }
예제 #2
0
    public void ButtonEvnetCallback(string eventGameObjName)
    {
        PhotoScene.Instance.uiRoot.CloseAllAlert();
        PhotoScene.Instance.uiRoot.ColseReminder();
        if (M_HomeButtonEvnetEnum != HomeButtonEvnetEnum.END || EventTime > 0)
        {
            return;
        }
        if (eventGameObjName == "ar")
        {
            EventTime = 1;
            MsgBase.QuitUI();

            MsgBase.SendMsg("HideScene", "PhotoScene");
            MsgBase.SendMsg <bool, float>("ShowBlur", false, 10);
            MsgBase.SendMsg <string>("OnOpenScene", "ImageIdentificationScene");
            //关闭列表菜单   注:当列表菜单打开  点击其他事件 关闭列表
            BaseButtonEvnet2();
            return;
        }
        if (eventGameObjName == "mine")
        {
            EventTime = 1;
            MsgBase.QuitUI();
            // HomePageChildDictionary["movableUI"].SetActive(false);
            PhotoScene.Instance.photoprompt.Off();
            PhotoScene.Instance.isNotReachable(false);
            M_HomeButtonEvnetEnum = HomeButtonEvnetEnum.MINE;
            MsgBase.SendMsg <Callback <bool, string> >("U2N_U_OpenMainMenu", null);
            //关闭列表菜单   注:当列表菜单打开  点击其他事件 关闭列表
            MsgBase.SendMsg <Callback, bool>("SetIsAngle02", delegate() { MsgBase.SendMsg <bool, float>("ShowBlur", false, 30); }, true);

            BaseButtonEvnet2();
            return;
        }
        if (eventGameObjName == "map")
        {
            EventTime             = 1;
            M_HomeButtonEvnetEnum = HomeButtonEvnetEnum.MAP;
            BaseButtonEvnet2();
            MsgBase.QuitUI();
            PhotoScene.Instance.specialEffectsUI.clickShow(delegate()
            {
                MsgBase.SendMsg <Callback <bool, string> >("U2N_U_OpenMap", null);
            });
            return;
        }
        if (eventGameObjName == "BaseButton")
        {
            if (isBaseStatr)
            {
                Debug.Log("isBaseStatr");
                isBaseStatr = false;
                Vector3   v            = Vector3.zero;
                SUIButton tmpSUIButton = HomePageChildDictionary["BaseButton"].GetComponent <SUIButton>();
                if (isBase)
                {
                    v = new Vector3(0, 0, 90);
                }
                else
                {
                    v = new Vector3(0, 0, -90);
                }
                tmpSUIButton.Rotate("default", v, 0.5f, EndBase);
                sUImenu.AnimPlay(isBase);
                isBase = !isBase;
            }
            return;
        }

        if (eventGameObjName == "UPphoto")
        {
            EventTime             = 1;
            M_HomeButtonEvnetEnum = HomeButtonEvnetEnum.UpPhoto;
            MsgBase.QuitUI();
            PhotoScene.Instance.UpPhoto();
            return;
        }
        if (eventGameObjName == "CollePhoto")
        {
            EventTime             = 1;
            M_HomeButtonEvnetEnum = HomeButtonEvnetEnum.Collectphoto;
            PhotoScene.Instance.Collectphoto();
            return;
        }
        if (eventGameObjName == "movableUI")
        {
            if (PhotoScene.Instance.IsLoadingData)
            {
                return;
            }
            Debug.Log("==eventGameObjName==" + PlayerPrefs.GetString("uid").ToString());
            if (PlayerPrefs.GetString("uid").Equals("") || PlayerPrefs.GetString("uid") == null)
            {
                MsgBase.SendMsg <Callback <bool, string> >("U2N_U_OpenLogin", null);
                return;
            }
            EventTime             = 1;
            M_HomeButtonEvnetEnum = HomeButtonEvnetEnum.movableUI;
            MsgBase.QuitUI();
            MsgBase.SendMsg("HideScene", "PhotoScene");
            //MsgBase.SendMsg<bool, float>("ShowBlur", false, 10);
            MsgBase.SendMsg <string>("OnOpenScene", "MovableScene");
            // HomePageChildDictionary["movableUI"].SetActive(false);
            //关闭列表菜单   注:当列表菜单打开  点击其他事件 关闭列表
            BaseButtonEvnet2();
            return;
        }
    }