public override void CallWhenHide() { //DisablePlayerModel(); MFUIUtils.ShowGameObject(false, m_myGameObject); //MogoMainCamera.instance.SetActive(true); //MFUIGameObjectPool.GetSingleton().DestroyGameObject(m_myGameObject); }
public override void CallWhenShow() { MFUIUtils.ShowGameObject(true, m_myGameObject); MenuUIViewManager.Instance.ShowAllEquipItem(false); MenuUIViewManager.Instance.ShowRefreshEquipFXBtn(true); MenuUIViewManager.Instance.ShowIconListMask(true); MogoMainCamera.instance.SetActive(false); }
public override void CallWhenHide() { MFUIUtils.ShowGameObject(false, m_myGameObject); MenuUIViewManager.Instance.ShowAllEquipItem(true); MenuUIViewManager.Instance.ShowRefreshEquipFXBtn(false); MenuUIViewManager.Instance.ShowIconListMask(false); MogoMainCamera.instance.SetActive(true); MFUIGameObjectPool.GetSingleton().DestroyGameObject(m_myGameObject); }
/// <summary> /// 是否是MVP /// </summary> /// <param name="isMVP"></param> public void SetIsMVP(bool isMVP) { if (isMVP) { MFUIUtils.ShowGameObject(true, GetSprite("BattlePassUINoCardMVPBGBG").gameObject); MFUIUtils.ShowGameObject(true, GetSprite("BattlePassUINoCardMVPOutPutBGBG").gameObject); } else { MFUIUtils.ShowGameObject(false, GetSprite("BattlePassUINoCardMVPBGBG").gameObject); MFUIUtils.ShowGameObject(false, GetSprite("BattlePassUINoCardMVPOutPutBGBG").gameObject); } }
public override void CallWhenHide() { //if (SystemSwitch.DestroyAllUI) //{ m_myTransform.Find("DragonIcon").GetComponentsInChildren <UITexture>(true)[0].mainTexture = null; //AtlasCanRelease.spriteMaterial.mainTexture = null; AssetCacheMgr.ReleaseResourceImmediate("lyfw_ditu.png"); Release(); m_instance = null; MFUIManager.GetSingleton().ReleaseDragonUI(m_myGameObject); //} MFUIUtils.ShowGameObject(false, m_myGameObject); //Debug.LogError("DragonDisable"); MogoUIManager.Instance.ShowBillboardList(true); if (MogoMainCamera.instance) { MogoMainCamera.instance.SetActive(true); } MogoUIManager.Instance.GetMainUICamera().clearFlags = CameraClearFlags.Depth; //Debug.Log("DamnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnDisalbe"); MogoFXManager.Instance.DetachUIFX(5); MogoFXManager.Instance.DetachUIFX(6); //MogoFXManager.Instance.ShowUIFX(5, false); //MogoFXManager.Instance.ShowUIFX(6, false); //uiCursor.atlas = null; if (!SystemSwitch.DestroyResource) { return; } //tex = m_myTransform.FindChild("DragonIcon").GetComponentsInChildren<UITexture>(true)[0].mainTexture; //AssetCacheMgr.ReleaseResource(tex); // m_myTransform.FindChild("DragonIcon").GetComponentsInChildren<UITexture>(true)[0].mainTexture = null; //AssetCacheMgr.ReleaseResource(m_myTransform.FindChild("DragonIcon").GetComponentsInChildren<UITexture>(true)[0].mainTexture); m_myTransform.Find("DragonIcon").GetComponentsInChildren <UITexture>(true)[0].mainTexture = null; //AtlasCanRelease.spriteMaterial.mainTexture = null; AssetCacheMgr.ReleaseResourceImmediate("lyfw_ditu.png"); //AssetCacheMgr.ReleaseResourceImmediate("MogoDragonUI.png"); }
public override void CallWhenShow() { MFUIUtils.ShowGameObject(true, m_myGameObject); //Debug.LogError("RuneEnable"); MogoUIManager.Instance.ShowBillboardList(false); if (MogoMainCamera.instance) { MogoMainCamera.instance.SetActive(false); } MogoUIManager.Instance.GetMainUICamera().clearFlags = CameraClearFlags.SolidColor; EventDispatcher.TriggerEvent(Events.RuneEvent.GetRuneBag); EventDispatcher.TriggerEvent(Events.RuneEvent.GetBodyRunes); Mogo.Util.LoggerHelper.Debug("Loading Model"); LoadPlayerModel(); //Debug.LogError("RuneUIEnable"); if (!SystemSwitch.DestroyResource) { return; } if (m_texInsetBodyBG.mainTexture == null) { AssetCacheMgr.GetResourceAutoRelease("lyfw_fuwenxiangqianbeijng.png", (obj) => { m_texInsetBodyBG.mainTexture = (Texture)obj; }); } //if (DragonUIViewManager.Instance.AtlasCanRelease != null) //{ // if (DragonUIViewManager.Instance.AtlasCanRelease.spriteMaterial.mainTexture == null) // { // AssetCacheMgr.GetUIResource("MogoDragonUI.png", (obj) => // { // DragonUIViewManager.Instance.AtlasCanRelease.spriteMaterial.mainTexture = (Texture)obj; // DragonUIViewManager.Instance.AtlasCanRelease.MarkAsDirty(); // m_myTransform.GetComponent<UIPanel>().enabled = false; // m_myTransform.GetComponent<UIPanel>().enabled = true; // }); // } //} }
public void SetRewardItemList(System.Collections.Generic.List <int> itemId) { Transform listTrans = GetTransform("BattlePassUINoCardItemList"); listTrans.localPosition = new Vector3(-(itemId.Count - 1) * 80f, listTrans.localPosition.y, listTrans.localPosition.z); for (int i = 0; i < m_listItemIconFG.Count; ++i) { if (i < itemId.Count) { InventoryManager.SetIcon(itemId[i], m_listItemIconFG[i], 0, null, m_listItemIconBG[i]); MFUIUtils.ShowGameObject(true, m_listItemIconFG[i].transform.parent.gameObject); } else { MFUIUtils.ShowGameObject(false, m_listItemIconFG[i].transform.parent.gameObject); } } }
public void SetRewardItemList(System.Collections.Generic.Dictionary <int, int> itemList) { Transform listTrans = GetTransform("BattlePassUINoCardItemList"); listTrans.localPosition = new Vector3(-(itemList.Count - 1) * 80f, listTrans.localPosition.y, listTrans.localPosition.z); for (int i = 0; i < m_listItemIconFG.Count; ++i) { MFUIUtils.ShowGameObject(false, m_listItemIconFG[i].transform.parent.gameObject); } int index = 0; foreach (var item in itemList) { InventoryManager.SetIcon(item.Key, m_listItemIconFG[index], 0, null, m_listItemIconBG[index]); SetLabelText(string.Concat("BattlePassUINoCardItem", index, "Text"), string.Concat( Mogo.GameData.ItemParentData.GetItem(item.Key).Name, " * ", item.Value)); MFUIUtils.ShowGameObject(true, m_listItemIconFG[index].transform.parent.gameObject); ++index; } }
public override void CallWhenHide() { //if (SystemSwitch.DestroyAllUI) //{ Release(); m_instance = null; MFUIManager.GetSingleton().ReleaseRuneUI(m_myGameObject); //} MFUIUtils.ShowGameObject(false, m_myGameObject); //Debug.LogError("RuneUIDisable"); MogoUIManager.Instance.ShowBillboardList(true); if (MogoMainCamera.instance) { MogoMainCamera.instance.SetActive(true); } MogoUIManager.Instance.GetMainUICamera().clearFlags = CameraClearFlags.Depth; DisablePlayerModel(); if (!SystemSwitch.DestroyResource) { return; } m_texInsetBodyBG.mainTexture = null; AssetCacheMgr.ReleaseResourceImmediate("lyfw_fuwenxiangqianbeijng.png"); //DragonUIViewManager.Instance.AtlasCanRelease.spriteMaterial.mainTexture = null; //AssetCacheMgr.ReleaseResourceImmediate("MogoDragonUI.png"); }
public void ShowOKBtn(bool isShow = true) { MFUIUtils.ShowGameObject(isShow, GetTransform("BattlePassCardListUIOKBtn").gameObject); }
public override void CallWhenHide() { DisablePlayerModel(); MFUIUtils.ShowGameObject(false, m_myGameObject); }
public override void CallWhenHide() { MFUIUtils.ShowGameObject(false, m_myGameObject); }
public void ShowDiamondBtn(bool isShow) { MFUIUtils.ShowGameObject(isShow, GetTransform("EnterWaittingMessageBoxDiamondButton").gameObject); }
public void ShowRightReviveBtn(bool isShow) { MFUIUtils.ShowGameObject(isShow, GetTransform("EnterWaittingMessageBoxReviveButton").gameObject); }
public void ShowOKBtn(bool isShow) { MFUIUtils.ShowGameObject(isShow, GetButtonHandler("NewBattleRewardUIOKBtn").gameObject); }
public override void CallWhenShow() { MFUIUtils.ShowGameObject(true, m_myGameObject); }
public override void CallWhenShow() { MFUIUtils.ShowGameObject(true, m_myGameObject); //MogoMainCamera.instance.SetActive(false); }
public void ShowCard(int id, bool isShow = true) { MFUIUtils.ShowGameObject(isShow, GetTransform(string.Concat("BattlePassCardListUICard", id)).gameObject); EventDispatcher.TriggerEvent(SettingEvent.UIDownPlaySound, string.Concat("BattlePassCardListUICard", id)); }
public void ShowInfoText(bool isShow) { MFUIUtils.ShowGameObject(isShow, GetLabel("NewBattleRewardUIInfoText").gameObject); }
public void LoadInstance(MFUIManager.MFUIID id, string path, string goName, bool preLoad) //加载资源并实例化 { if (m_dictResNameToObj.ContainsKey(path)) { MFUIGameObjectPoolUnit unit = new MFUIGameObjectPoolUnit(); unit.isFree = false; unit.poolUnit = (GameObject)(GameObject.Instantiate(m_dictResNameToObj[path])); unit.poolUnit.name = goName; if (preLoad) { unit.isFree = true; MFUIUtils.ShowGameObject(false, unit.poolUnit); } MFUIGameObjectPool.GetSingleton().m_listResPathToPoolUnit[path].Add(unit); MFUIGameObjectPool.GetSingleton().ResourceLoaded(goName); } else { AssetCacheMgr.GetUIResource(path, (obj) => { if (obj == null) { MFUIUtils.MFUIDebug(string.Concat(path, " Not Found ! ")); return; } if (m_dictResNameToObj.ContainsKey(path)) { MFUIUtils.MFUIDebug("Same Key in ResNameToObj Dict , Now Replace It"); } //m_dictResNameToObj.Add(path, obj); m_dictResNameToObj[path] = obj; if (!m_dictUIIDToObjList.ContainsKey(id)) { m_dictUIIDToObjList.Add(id, new List <Object>()); } if (!m_dictUIIDToObjList[id].Contains(obj)) { m_dictUIIDToObjList[id].Add(obj); } MFUIGameObjectPoolUnit unit = new MFUIGameObjectPoolUnit(); unit.isFree = false; unit.poolUnit = (GameObject)(GameObject.Instantiate(m_dictResNameToObj[path])); unit.poolUnit.name = goName; if (preLoad) { unit.isFree = true; MFUIUtils.ShowGameObject(false, unit.poolUnit); } MFUIGameObjectPool.GetSingleton().m_listResPathToPoolUnit[path].Add(unit); MFUIGameObjectPool.GetSingleton().ResourceLoaded(goName); }); //Object obj = Resources.Load(path); //if (obj == null) //{ // MFUIUtils.MFUIDebug(string.Concat(path, " Not Found ! ")); // return; //} //m_dictResNameToObj.Add(path, obj); //MFUIGameObjectPoolUnit unit = new MFUIGameObjectPoolUnit(); //unit.isFree = false; //unit.poolUnit = (GameObject)(GameObject.Instantiate(m_dictResNameToObj[path])); //unit.poolUnit.name = goName; //MFUIGameObjectPool.GetSingleton().m_listResPathToPoolUnit[path].Add(unit); //MFUIGameObjectPool.GetSingleton().ResourceLoaded(goName); } }
public override void CallWhenHide() { MFUIUtils.ShowGameObject(false, m_myGameObject); MogoUIManager.Instance.GetMainUICamera().clearFlags = CameraClearFlags.Depth; MogoMainCamera.instance.SetActive(true); }
public void PlayRewardAnim() { MFUIUtils.ShowGameObject(true, GetTransform("BattlePassUIReward").gameObject); EventDispatcher.TriggerEvent(SettingEvent.UIDownPlaySound, "BattlePassUIReward"); }
public override void CallWhenHide() { MFUIUtils.ShowGameObject(false, m_myGameObject); MFUIGameObjectPool.GetSingleton().DestroyGameObject(m_myGameObject); BattlePassUIViewManager.Instance.DestroySelf(); }
public override void CallWhenShow() { EventDispatcher.TriggerEvent(Events.RuneEvent.GetRuneBag); MFUIUtils.ShowGameObject(true, m_myGameObject); //Debug.LogError("DragonEnable"); MogoUIManager.Instance.ShowBillboardList(false); if (MogoMainCamera.instance) { MogoMainCamera.instance.SetActive(false); } MogoUIManager.Instance.GetMainUICamera().clearFlags = CameraClearFlags.SolidColor; //Debug.Log("DamnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnEnable"); if (isFirst) { //���ӳٵĻ���transform.positionȡֵ����ȷ TimerHeap.AddTimer(100, 0, () => { MogoFXManager.Instance.AttachUIFX(5, MogoUIManager.Instance.GetMainUICamera(), 0, 0, 0, null); MogoFXManager.Instance.AttachUIFX(6, MogoUIManager.Instance.GetMainUICamera(), 0, 0, 0, null); isFirst = false; }); } else { MogoFXManager.Instance.ShowUIFX(5, true); MogoFXManager.Instance.ShowUIFX(6, true); } uiCursor.atlas = AtlasCanRelease; if (!SystemSwitch.DestroyResource) { return; } if (m_myTransform.Find("DragonIcon").GetComponentsInChildren <UITexture>(true)[0].mainTexture == null) { AssetCacheMgr.GetResourceAutoRelease("lyfw_ditu.png", (obj) => { m_myTransform.Find("DragonIcon").GetComponentsInChildren <UITexture>(true)[0].mainTexture = (Texture)obj; }); } //if (AtlasCanRelease != null) //{ // if (AtlasCanRelease.spriteMaterial.mainTexture == null) // { // AssetCacheMgr.GetUIResource("MogoDragonUI.png", (obj) => // { // AtlasCanRelease.spriteMaterial.mainTexture = (Texture)obj; // AtlasCanRelease.MarkAsDirty(); // m_myTransform.GetComponent<UIPanel>().enabled = false; // m_myTransform.GetComponent<UIPanel>().enabled = true; // }); // } //} }
/// <summary> /// 播放4.MVP输出动画 /// </summary> public void PlayMVPOutputAnim() { MFUIUtils.ShowGameObject(true, GetTransform("BattlePassUINoCardMVPOutPut").gameObject); }
public void ShowLeftBtn(bool isShow) { MFUIUtils.ShowGameObject(isShow, GetTransform("EnterWaittingMessageBoxCancelButton").gameObject); }
public override void CallWhenHide() { MFUIUtils.ShowGameObject(false, m_myGameObject); MFUIGameObjectPool.GetSingleton().DestroyGameObject(m_myGameObject); }
public override void CallWhenShow() { MogoUIManager.Instance.ShowCurrentUI(false); MFUIUtils.ShowGameObject(true, m_myGameObject); }
public void ShowWaittingAnim(bool isShow) { MFUIUtils.ShowGameObject(isShow, GetSprite("EnterWaittingMessageBoxLodingAnim").transform.parent.gameObject); }
/// <summary> /// 播放1.防御次数动画 /// </summary> public void PlayDefenceNumAnim() { MFUIUtils.ShowGameObject(true, GetTransform("BattlePassUINoCardDefenceNum").gameObject); }