Beispiel #1
0
    public void Fumo(int slot)
    {
        LoggerHelper.Debug(slot);
        int currentSlot = slot;

        if (HasFumoProccess(out currentSlot))
        {
            //提示附魔
            ShowFumoInfo();
        }
        else
        {
            //FumoReq(slot);
            //m_currentSlot = slot;

            ItemEquipment  equip    = InventoryManager.Instance.EquipOnDic[slot];
            ItemParentData material = ItemParentData.GetItem(equip.GetEnhantMaterialId());
            if (InventoryManager.Instance.GetItemNumById(material.id) <= 0)
            {
                MogoMsgBox.Instance.ShowFloatingText(LanguageData.GetContent(1385, material.Name));
                return;
            }

            EquipTipManager.Instance.CloseEquipTip();
            string        title       = LanguageData.GetContent(28120, material.Name);
            List <string> contentList = new List <string>();
            for (int i = 0; i < 5; i++)
            {
                contentList.Add(LanguageData.GetContent(28113 + i));
            }
            FumoUIViewManager.Instance.ShowFumoProcess(title, contentList,
                                                       () =>
            {
                FumoReq(slot);
                m_currentSlot = slot;
            }
                                                       , () =>
            {
                FumoUIViewManager.Instance.CloseUI();
                InventoryManager.Instance.OnEquipGridUp(m_currentSlot);
            });
        }
    }
Beispiel #2
0
    public void ShowRespInfo(int errorId, int slot = 0)
    {
        if (errorId == 5 && slot != 0 && InventoryManager.Instance.EquipOnDic.ContainsKey(slot))
        {
            ItemEquipment equip = InventoryManager.Instance.EquipOnDic.Get(slot);

            MogoMsgBox.Instance.ShowFloatingText(LanguageData.GetContent(1385, ItemParentData.GetItem(equip.GetEnhantMaterialId()).Name));
        }
        else if (errorId != 0)
        {
            MogoMsgBox.Instance.ShowFloatingText(LanguageData.GetContent(errorId + 1380));
        }
    }