private void PreviewBuy() { //int id = ItemEffectData.dataMap[ItemMaterialData.dataMap[preview.resData.itemId].effectId].reward1[13]; MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.None); EventDispatcher.TriggerEvent(Events.WingEvent.OpenBuy, preview.resData.itemId, preview.resData.priceNow); preBuy = preview; }
private void VIPBtnUp(int id) { MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RewardUI); RewardUILogicManager.Instance.SetUIDirty(); MogoUIManager.Instance.ShowMogoNormalMainUI(); MogoUIManager.Instance.ShowVIPInfoUI(); }
private void Open() { MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.WingUI); WingUILogicManager.Instance.SetUIDirty(); UpdateWing(m_self.wingBag); opened = true; }
void OnSepcialEffectsResp(LuaTable data) { EquipFXLuaTable = data; MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.EquipFXUI, MFUIManager.MFUIID.None, 0, true); EquipFXUILogicManager.Instance.FillJewelFXGridList(EquipFXLuaTable); EquipFXUILogicManager.Instance.SetUIDirty(); }
private void ChargeReward() { m_self.RpcCall("get_done_recharge"); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RewardUI); RewardUILogicManager.Instance.SetUIDirty(); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.NewChargeRewardUI, MFUIManager.MFUIID.None, 0, true); UpdateChargeRewardView(); }
private void WingIcon() { MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RewardUI); RewardUILogicManager.Instance.SetUIDirty(); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.ChargeReturnWingUI, MFUIManager.MFUIID.None, 0, true); //ChargeReturnWingUILogicManager.Instance.SetTopWingIcon(""); ChargeReturnWingUILogicManager.Instance.SetUIDirty(); }
/// <summary> /// 调用播放奖励动画 /// </summary> public void PlayerRewardAnimationOutSide() { MogoUIManager.Instance.LoadMogoInstancePassRewardUI(false); ResetVictoryPostionAnimation(); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.BattlePassUI); // PlayRewardAnimationBefore(); // StartCoroutine(PlayerAnimation()); }
public override void CallWhenLoadResources() { m_instance = this; ID = MFUIManager.MFUIID.NewChargeRewardUI; MFUIManager.GetSingleton().RegisterUI(ID, m_myGameObject); m_myGameObject.name = "NewChargeRewardUI"; MFUIUtils.AttachWidget(m_myTransform, GameObject.Find("MogoMainUIPanel").transform); MFUIGameObjectPool.GetSingleton().NotRegisterGameObjectList(ID); }
void OnGotoDragonUp(int i) { if (GOTODRAGONUP != null) { GOTODRAGONUP(); } //MogoUIManager.Instance.ShowMogoDragonUI(); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.DragonUI); }
public override void CallWhenLoadResources() { m_instance = this; AttachLogicUnit(InvitFriendMessageBoxLogicManager.Instance); ID = MFUIManager.MFUIID.InvitFriendMessageBox; m_myGameObject.name = "InvitFriendMessageBox"; MFUIManager.GetSingleton().RegisterUI(ID, m_myGameObject); MFUIUtils.AttachWidget(m_myTransform, GameObject.Find("MogoMainUIPanel").transform); MFUIGameObjectPool.GetSingleton().NotRegisterGameObjectList(ID); }
void OnGotoRuneIconUp(int i) { if (GOTORUNEUP != null) { GOTORUNEUP(); } //MogoUIManager.Instance.ShowMogoRuneUI(); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RuneUI); }
public override void CallWhenLoadResources() { m_instance = this; ID = MFUIManager.MFUIID.BattlePassUINoCard; m_myGameObject.name = "BattlePassUINoCard"; AttachLogicUnit(BattlePassUINoCardUILogicManager.Instance); MFUIManager.GetSingleton().RegisterUI(ID, m_myGameObject); MFUIUtils.AttachWidget(m_myTransform, GameObject.Find("MogoMainUIPanel").transform); MFUIGameObjectPool.GetSingleton().NotRegisterGameObjectList(ID); }
void OnNewAttributeRewardBtnUp(int id) { Debug.LogError("AttributeReward"); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RewardUI); RewardUILogicManager.Instance.SetUIDirty(); if (MogoUIManager.Instance.m_NewTimeLimitActivityUI != null) { MogoUIManager.Instance.m_NewTimeLimitActivityUI.SetActive(false); } MogoUIManager.Instance.SwitchNewAttributeRewardUI(true); }
private void ElfDiamond() { m_self.RpcCall("DiamondMineInfoReq"); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RewardUI); RewardUILogicManager.Instance.SetUIDirty(); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.ElfDiamondUI, MFUIManager.MFUIID.None, 0, true); ElfDiamondUILogicManager.Instance.SetCostDiamondNum("x 500"); ElfDiamondUILogicManager.Instance.SetDiamondNumCanGet("1"); ElfDiamondUILogicManager.Instance.SetTotalCostDiamondNum(LanguageData.GetContent(7808, 666)); ElfDiamondUILogicManager.Instance.SetTotalGotDiamondNum(LanguageData.GetContent(7809, 777)); ElfDiamondUILogicManager.Instance.SetUIDirty(); }
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 CallWhenLoadResources() { m_instance = this; ID = MFUIManager.MFUIID.DragonUI; MFUIManager.GetSingleton().RegisterUI(ID, m_myGameObject); MFUIResourceManager.GetSingleton().PreLoadResource("DragonUIGridInfotest.prefab", ID); MFUIResourceManager.GetSingleton().PreLoadResource("fx_ui_longyujiemian_qiu.prefab", ID); MFUIResourceManager.GetSingleton().PreLoadResource("fx_ui_longyujiemian_jb.prefab", ID); MFUIGameObjectPool.GetSingleton().NotRegisterGameObjectList(MFUIManager.MFUIID.DragonUI); MFUIUtils.AttachWidget(m_myTransform, GameObject.Find("MogoMainUIPanel").transform); m_myGameObject.name = "DragonUI"; }
private void Preview(MarketItem data) { preview = data; int id = ItemEffectData.dataMap[ItemMaterialData.dataMap[data.resData.itemId].effectId].reward1[13]; m_myself.PreviewWing(id); WingData d = WingData.dataMap.Get(id); WingLevelData ld = d.GetLevelData(1); List <string> attrs = ld.GetPropertEffect(); WingUIPreviewInMarketUILogicManager.Instance.SetTitle(LanguageData.GetContent(d.name)); WingUIPreviewInMarketUILogicManager.Instance.SetTipAttr(attrs); WingUIPreviewInMarketUILogicManager.Instance.SetWingAttr(attrs); WingUIPreviewInMarketUILogicManager.Instance.SetUIDirty(); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.WingPreviewInMarketUI); }
// void Awake() public override void CallWhenLoadResources() { ID = MFUIManager.MFUIID.RuneUI; MFUIManager.GetSingleton().RegisterUI(ID, m_myGameObject); m_myGameObject.name = "RuneUI"; m_myTransform = transform; m_instance = this; Initialize(); FillFullNameData(m_myTransform); MFUIUtils.AttachWidget(m_myTransform, GameObject.Find("MogoMainUIPanel").transform); MFUIGameObjectPool.GetSingleton().NotRegisterGameObjectList(ID); }
void OnRewardUICloseBtnUp(int id) { //Debug.LogError("Close"); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RewardUI); RewardUILogicManager.Instance.SetUIDirty(); if (MogoUIManager.Instance.m_NewTimeLimitActivityUI != null) { MogoUIManager.Instance.m_NewTimeLimitActivityUI.SetActive(false); } if (MogoUIManager.Instance.m_NewAttributeRewardUI != null) { MogoUIManager.Instance.m_NewAttributeRewardUI.SetActive(false); } MogoUIManager.Instance.ShowMogoNormalMainUI(); }
private void OpenBuy(int id, int diamond) { int iid = ItemEffectData.dataMap[ItemMaterialData.dataMap[id].effectId].reward1[13];//13是reward1中的翅膀类型 MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.WingUIBuyDialog, MFUIManager.MFUIID.None, 0, true); WingData d = WingData.dataMap.Get(iid); WingLevelData ld = d.GetLevelData(1); WingUIBuyDialogLogicManager.Instance.SetBuyDialodTitle(LanguageData.GetContent(d.name)); List <string> attrs = ld.GetPropertEffect(); for (int i = 0; i < attrs.Count; i++) { WingUIBuyDialogLogicManager.Instance.SetBuyDialogAttr(attrs[i], i); } WingUIBuyDialogLogicManager.Instance.SetBuyDialogCost(" " + diamond); WingUIBuyDialogLogicManager.Instance.SetBuyDialogIcon(IconData.dataMap.Get(ItemMaterialData.dataMap[id].icon).path); WingUIBuyDialogLogicManager.Instance.SetUIDirty(); }
private void OnOgreMustDieClicked() { if (!OgreMustDieOpen) { MogoMsgBox.Instance.ShowFloatingText(LanguageData.GetContent(28050)); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.ProtectGodressTip); List <string> result = new List <string>(); foreach (var data in ActivityRewardData.dataMap) { StringBuilder temp = new StringBuilder(); temp.Append(LanguageData.dataMap.Get(26057).Format(data.Value.wave)); if (data.Value.items != null) { foreach (var itemData in data.Value.items) { temp.Append(ItemParentData.GetNameWithNum(itemData.Key, itemData.Value)); temp.Append(" "); } } temp.Append(" "); temp.Append(LanguageData.GetContent(26058)); if (data.Value.items != null) { foreach (var itemData in data.Value.items) { temp.Append(ItemParentData.GetNameWithNum(itemData.Key, itemData.Value)); temp.Append(" "); } } result.Add(temp.ToString()); } ProtectGodressTipLogicManager.Instance.SetTipRewardList(result); ProtectGodressTipLogicManager.Instance.SetUIDirty(); } else { EventDispatcher.TriggerEvent(Events.CampaignEvent.GetCampaignLeftTimes, 1); } }
public void PlayScroeAnim() { if (BattlePassUIViewManager.Instance) { m_playMark = false; BattlePassUIViewManager.Instance.SetUIDirty(); BattlePassUIViewManager.Instance.PlayPassTimeAnim(); TimerHeap.AddTimer(500, 0, BattlePassUIViewManager.Instance.PlayMaxComboAnim); TimerHeap.AddTimer(1000, 0, BattlePassUIViewManager.Instance.PlayScoreAnim); TimerHeap.AddTimer(1500, 0, BattlePassUIViewManager.Instance.PlayRewardAnim); TimerHeap.AddTimer(2000, 0, BattlePassUIViewManager.Instance.PlayMarkAnim); TimerHeap.AddTimer(2500, 0, () => { MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.BattlePassCardListUI); }); } else { m_playMark = true; } }
public override void CallWhenLoadResources() { m_instance = this; ID = MFUIManager.MFUIID.NewChallengeUI; MFUIManager.GetSingleton().RegisterUI(ID, m_myGameObject); MFUIUtils.AttachWidget(m_myTransform, GameObject.Find("MogoMainUIPanel").transform); m_myGameObject.name = "NewChallengeUI"; //MFUIGameObjectPool.GetSingleton().NotRegisterGameObjectList(ID); System.Collections.Generic.List <MFUIResourceReqInfo> listInfo = new System.Collections.Generic.List <MFUIResourceReqInfo>(); for (int i = 0; i < 8; ++i) { int index = i; MFUIResourceReqInfo info = new MFUIResourceReqInfo(); info.id = ID; info.path = "NewChallengeUIGrid.prefab"; info.goName = string.Concat("NewChallengeUIGrid", index); listInfo.Add(info); } MFUIGameObjectPool.GetSingleton().RegisterGameObjectList(listInfo, null, true); }
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"); }
void OnDestroy() { CallWhenDestroy(); //foreach (var item in m_dictButtonAction) //{ // item.Value.ClickHandler = null; // item.Value.PressHandler = null; // item.Value.DragHandler = null; //} //m_dictLabel.Clear(); //m_dictSprite.Clear(); //m_dictButtonAction.Clear(); //m_dictTransform.Clear(); //m_dictLabel = null; //m_dictSprite = null; //m_dictTransform = null; //m_dictButtonAction = null; UnLoadResources(); m_bIsResourcesLoaded = false; m_bIsDirty = false; //MFUIManager.GetSingleton().DictUIIDToOBj.Remove(ID); MFUIManager.GetSingleton().ReleaseUI(ID); m_myGameObject = null; m_myTransform = null; DetachLogicUnit(); MFUIGameObjectPool.GetSingleton().UIResourcesLoadedCB -= OnUIResourcesLoaded; }
void OnSystemGridUp(int xmlID) { UpgradePowerData xmlData = UpgradePowerData.GetUpgradePowerDataByID(xmlID); if (xmlData != null) { int linkID = xmlData.hyper; // 跳转控件id switch ((UpgradePowerSystem)xmlData.id) { case UpgradePowerSystem.Equipment: MogoUIManager.Instance.ShowEquipRecommendUI(null); break; case UpgradePowerSystem.JewelInset: MogoUIManager.Instance.SwitchInsetUI(null); break; case UpgradePowerSystem.Rune: UpgradePowerUIViewManager.Instance.gameObject.SetActive(false); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.RuneUI); break; case UpgradePowerSystem.BodyEnhance: MogoUIManager.Instance.SwitchStrenthUI(null); break; case UpgradePowerSystem.Tong: MogoUIManager.Instance.SwitchTongUI(); break; default: break; } } }
void OnBuyDialogCloseBtnUp(int id) { Debug.LogError("BuyDialogCloseBtnUp"); MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.None); //WingUILogicManager.Instance.SetUIDirty(); }
public override void CallWhenLoadResources() { ID = MFUIManager.MFUIID.CityMainUI; MFUIManager.GetSingleton().RegisterUI(ID, m_myGameObject); MFUIGameObjectPool.GetSingleton().NotRegisterGameObjectList(ID); }
private void ClosePreview() { MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.None); m_myself.ResetPreviewWing(); m_myself.UpdateDressWing(); }
private void OpenWithWingHandler() { MFUIManager.GetSingleton().SwitchUIWithLoad(MFUIManager.MFUIID.None); MogoUIManager.Instance.SwitchToMarket(MarketUITab.WingTab); }