public void JewelCombineResp(byte subType, byte level, byte errorId) { m_isComposing = false; TimerHeap.DelTimer(m_timerId); int type = (int)subType; //int level = m_currentJewel.level; Debug.Log("JewelCombineResp:" + errorId); switch (errorId) { case 0: MogoGlobleUIManager.Instance.ShowComposeSucessSign(true); if (ComposeUIViewManager.Instance != null && InventoryManager.Instance.CurrentView == InventoryManager.View.ComposeView) { ComposeUIViewManager.Instance.PlayUIFXAnim(); } if (MogoUIManager.Instance.CurrentUI == MogoUIManager.Instance.m_ComposeUI) { RefreshUI(); } break; case 4: Debug.Log("JewelCombineResp:" + errorId); //string msg = LanguageData.dataMap[425].Format(ItemJewelData.JewelDic[type][level - 1].Name); //MogoMsgBox.Instance.ShowMsgBox(msg); //在背包点合成时候转到合成界面,合成界面无法点合成所以不会有这个返回 SwitchToCompose(subType, level - 2); //InventoryManager.Instance.CurrentView = InventoryManager.View.ComposeView; //InventoryManager.Instance.m_currentEquipmentView = InventoryManager.View.ComposeView; //EquipTipManager.Instance.CloseEquipTip(); //m_currentJewel = ItemJewelData.JewelDic[subType][level]; //m_currentParentId = subType; //m_currentChildId = level - 2; //m_isSwitchFromBag = true; //MogoUIManager.Instance.SwitchComposeUI();//() => { OnSwitchComposeUIDone(subType, level); } break; default: Debug.Log("JewelCombineResp:" + errorId); Debug.Log("JewelCombineResp:" + type + "," + level); if (ItemJewelData.GetJewelDic()[type][level] == null) { Debug.Log("f**k!"); } else { InsetManager.ShowInfoByErrorId(errorId, ItemJewelData.GetJewelDic()[type][level]); } break; } Debug.Log("JewelCombineResp:" + errorId); EquipTipManager.Instance.CloseEquipTip(); }
public void JewelCombineInEqiResp(byte errorId) { int type = m_currentJewel.subtype; int level = m_currentJewel.level + 1; InsetManager.ShowInfoByErrorId(errorId, ItemJewelData.JewelDic[type][level]); Debug.Log("JewelCombineInEqiResp:" + errorId); }