public void Open() { MsgBase.QuitUI(); // CollectIn.SetActive(true); PhotoScene.Instance.PhotoInvoke(1, Show); }
/// <summary> /// 帮助 按钮事件 /// </summary> private void helpEvnet() { //关闭列表菜单 注:当列表菜单打开 点击其他事件 关闭列表 MsgBase.QuitUI(); PhotoScene.Instance.IsClickPhtoto = true; //HomePageChildDictionary["movableUI"].SetActive(false); sUImenuhelp.MenuDictionary["Backround"].gameObject.SetActive(true); //MsgBase.SendMsg<bool>("isheip", true); isHelp = true; }
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; } }
public void ItemClick(GameObject obj, Vector2 pos, SpecialEffectsUI _effectsUI, MySkyInputEvent.ClickState ClickState) { if (IsItemClick == true) { return; } if (ClickState == MySkyInputEvent.ClickState.Down) { ClickItemData = FindItemData(obj); Debug.Log("====" + ClickItemData.cardType); if (ClickItemData != null && ClickItemData.cardType > 3) { return; } if (ClickItemData != null) { PhotoScene.Instance.clickUi.ClickUiObj.GetComponent <RectTransform>().position = new Vector3(pos.x, pos.y, 0); PhotoScene.Instance.clickUi.ClickUiObj.SetActive(true); ClickItemData.item.Photo.GetComponent <Renderer>().material.color = new Vector4(0.5f, 0.5f, 0.5f, 1); ClickItemData.item.BoderGlow.SetActive(true); } if (m_tmpDragState != MySkyInputEvent.DragState.OnDrag) { Speed = 0; m_tmpDragState = MySkyInputEvent.DragState.OnDrag; return; } } else { if (ClickItemData != null && ClickItemData.cardType > 3) { if (ClickItemData.cardType == 4) { ClickItemData.item.GetComponent <Animation>().Play(); ClickItemData.item.Clip.SetActive(true); PhotoScene.Instance.StartCoroutine(Doyhongdong(ClickItemData.nid)); } else { ClickItemData.item.Clip.SetActive(true); PhotoScene.Instance.StartCoroutine(Doyhongdong(ClickItemData.nid)); } return; } m_effectsUI = _effectsUI; ClickItemData = FindItemData(obj); if (ClickItemData != null) { m_TimeOnUpdateTow = 30; ClickItemData.item.Photo.GetComponent <Renderer>().material.color = ClickItemData.item.tmpColor; ClickItemData.item.BoderGlow.SetActive(false); MsgBase.QuitUI(); IsItemClick = true; PhotoScene.Instance.clickUi.specialEffectsUI2.clickShow(ItemClickShowEnd); } } }