Пример #1
0
    public void OnClickAuthenticate()
    {
        UI_RuneMange._instance.mGuid = mRuneGUID;
        if (mRuneGUID == null)
        {
            return;
        }

        ItemEquip    itemE = (ItemEquip)ObjectSelf.GetInstance().CommonItemContainer.FindItem(EM_BAG_HASHTABLE_TYPE.EM_BAG_HASHTABLE_TYPE_EQUIP, mRuneGUID);
        ItemTemplate itemT = itemE.GetItemRowData();

        //一星符文没法鉴定;
        if (itemT.getRune_quality() <= 1)
        {
            InterfaceControler.GetInst().AddMsgBox(GameUtils.getString("hero_rune_tip3"));
            return;
        }

        int count = DataTemplate.GetInstance().GetRuneMaxRedefineTimes(itemT);

        //是否鉴定满级;
        if (itemE.GetDefineTimes() >= count)
        {
            InterfaceControler.GetInst().AddMsgBox(GameUtils.getString("hero_rune_tip4"));
            return;
        }

        UI_RuneIdentifyMgr.SetShowRuneGUID(mRuneGUID);
        GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_OpenUI, UI_RuneIdentifyMgr.UI_ResPath);

        UI_CaptionManager cap = UI_CaptionManager.GetInstance();
    }
Пример #2
0
    void OnIdentifyBtnClick()
    {
        //HideRuneDetailUI();
        ItemEquip    itemE = _ObjectCard.GetHeroData().GetRuneItemInfo(mRunePoint);
        ItemTemplate itemT = itemE.GetItemRowData();

        //一星符文没法鉴定;
        if (itemT.getRune_quality() <= 1)
        {
            InterfaceControler.GetInst().AddMsgBox(GameUtils.getString("hero_rune_tip3"), mMsgBoxTrans);
            return;
        }

        //是否鉴定满级;
        int count = DataTemplate.GetInstance().GetRuneMaxRedefineTimes(itemT);

        if (itemE.GetDefineTimes() >= count)
        {
            InterfaceControler.GetInst().AddMsgBox(GameUtils.getString("hero_rune_tip4"), mMsgBoxTrans);
            return;
        }

        //if (!initRuneIdentifyUIDone)
        //{
        //    initRuneIdentifyUIDone = true;
        //    mRuneIdentifyMgr = new UI_RuneIdentifyMgr(mRuneIdentityObj);
        //}

        //mRuneIdentifyMgr.ShowUI(itemE.GetItemGuid());
        GameEventDispatcher.Inst.dispatchEvent(GameEventID.U_OpenUI, UI_RuneIdentifyMgr.UI_ResPath);
        UI_RuneIdentifyMgr.SetShowRuneGUID(itemE.GetItemGuid());
        RunOnBack();
    }