public void SetLegend()
    {
        this.e_MythType = MYTH_TYPE.MYTHTYPE_LEGEND;
        base.SetShowLayer(0, true);
        base.SetShowLayer(1, true);
        base.SetShowLayer(2, false);
        base.SetShowLayer(3, false);
        this.m_ToolBar.SetSelectTabIndex(0);
        this.m_Label_Gold.SetText(ANNUALIZED.Convert(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money));
        COMMON_CONSTANT_Manager instance = COMMON_CONSTANT_Manager.GetInstance();

        if (instance != null)
        {
            int  value = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_ESSENCE_ITEMUNIQUE);
            ITEM item  = NkUserInventory.GetInstance().GetItem(value);
            if (item != null)
            {
                this.m_Label_Essence.SetText(ANNUALIZED.Convert(item.m_nItemNum));
            }
            else
            {
                this.m_Label_Essence.SetText("0");
            }
        }
        this.InitMythDataSet();
        this.SetDropDownList_Season();
        this.SetLegendDataSort(0);
        this.SetLegendSolShow(0);
    }
 public void SetEvolution()
 {
     this.e_MythType = MYTH_TYPE.MYTHTYPE_EVOLUTION;
     base.SetShowLayer(0, true);
     base.SetShowLayer(1, false);
     base.SetShowLayer(2, true);
     base.SetShowLayer(3, false);
     this.m_ToolBar.SetSelectTabIndex(1);
     this.m_DropDownList_Season.SetVisible(false);
     this.m_DT_BaseSolimg.SetTexture(string.Empty);
     this.m_DT_ResultSolimg.SetTexture(string.Empty);
     this.m_DT_BaseSolRank.Visible   = false;
     this.m_DT_ResultSolRank.Visible = false;
     this.m_DT_MythSkillIcon1_2.SetTexture(string.Empty);
     this.m_DT_MythSkillIcon2_2.SetTexture(string.Empty);
     this.m_Label_MythEvolution_DragonHeart_Num2.SetText(string.Empty);
     this.m_Label_MythEvolution_Essence_Num2.SetText(string.Empty);
     this.m_Label_MythEvolution_Essence_Num.SetText(ANNUALIZED.Convert(NkUserInventory.GetInstance().Get_First_ItemCnt(50313)));
     this.m_Label_MythEvolution_DragonHeart_Num.SetText(ANNUALIZED.Convert(NkUserInventory.GetInstance().Get_First_ItemCnt(50316)));
     this.m_Label_MythEvolution_Descent_Num.SetText(ANNUALIZED.Convert(NkUserInventory.GetInstance().Get_First_ItemCnt(50317)));
     this.m_Label_BaseSeason.SetText(string.Empty);
     this.m_Label_ResultSeason.SetText(string.Empty);
     this.m_LB_BaseSolName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2031"));
     this.m_LB_MythSkillname1.SetText(string.Empty);
     this.m_LB_MythSkillLevel1.SetText(string.Empty);
     this.m_LB_MythSkillname2.SetText(string.Empty);
     this.m_LB_MythSkillLevel2.SetText(string.Empty);
     this.m_i64BaseSolID = 0L;
     this.SetEvolutionSkillImage(false);
 }
Exemplo n.º 3
0
    public void InitSet(MYTH_TYPE e_MythType, int i32CharKind, long i64SolID)
    {
        this.m_MythType    = e_MythType;
        this.m_i32CharKind = i32CharKind;
        this.m_i64SolID    = i64SolID;
        string textureFromBundle = "ui/itemshop/itemshop_elixir01";

        this.m_DT_elixir.SetTextureFromBundle(textureFromBundle);
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo != null)
        {
            long num = 0L;
            if (this.m_MythType == MYTH_TYPE.MYTHTYPE_LEGEND)
            {
                num = myCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_LEGENDMAKETIME);
                base.SetShowLayer(1, true);
                base.SetShowLayer(2, false);
            }
            else if (this.m_MythType == MYTH_TYPE.MYTHTYPE_EVOLUTION)
            {
                num = myCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_MYTH_EVOLUTION_TIME);
                base.SetShowLayer(1, false);
                base.SetShowLayer(2, true);
            }
            long curTime = PublicMethod.GetCurTime();
            if (curTime > num)
            {
                base.CloseNow();
                return;
            }
            long iSec        = num - curTime;
            int  num2        = NkUserInventory.GetInstance().Get_First_ItemCnt(50317);
            long num3        = PublicMethod.GetTotalDayFromSec(iSec);
            long hourFromSec = PublicMethod.GetHourFromSec(iSec);
            if (this.m_MythType == MYTH_TYPE.MYTHTYPE_LEGEND)
            {
                base.SetShowLayer(1, true);
                base.SetShowLayer(2, false);
                if (hourFromSec > 0L)
                {
                    num3 += 1L;
                }
                if ((long)num2 < num3)
                {
                    this.m_MaxItemUseNum = num2;
                }
                else
                {
                    this.m_MaxItemUseNum = (int)num3;
                }
            }
            else if (this.m_MythType == MYTH_TYPE.MYTHTYPE_EVOLUTION)
            {
                num3 *= 2L;
                base.SetShowLayer(1, false);
                base.SetShowLayer(2, true);
                if (hourFromSec > 0L)
                {
                    if (hourFromSec > 12L)
                    {
                        num3 += 2L;
                    }
                    else
                    {
                        num3 += 1L;
                    }
                }
                this.m_MaxItemUseNum = (int)num3;
            }
            this.SetItemText();
        }
    }