public CHARKIND_STATINFO GetBaseStatInfo(int charkind)
    {
        NrCharKindInfo charKindInfo = this.GetCharKindInfo(charkind);

        if (charKindInfo == null)
        {
            return(null);
        }
        return(charKindInfo.GetCHARKIND_STATINFO());
    }
示例#2
0
    public void SelectCharInfo(E_CHAR_TRIBE eCharTribe)
    {
        int            changeCharKindFormIndex = CharChangeMainDlg.GetChangeCharKindFormIndex(eCharTribe);
        NrCharKindInfo charKindInfo            = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(changeCharKindFormIndex);

        if (charKindInfo == null)
        {
            return;
        }
        this.SetMainTexture(eCharTribe);
        CharChangeMainDlg.SetCharImage(this.m_dtCharBG, changeCharKindFormIndex);
        BATTLESKILL_BASE battleSkillBase = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(charKindInfo.GetCHARKIND_STATINFO().kBattleSkillData[0].BattleSkillUnique);

        if (battleSkillBase != null)
        {
            this.m_dtSkillIcon1.SetTexture(NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillIconTexture(battleSkillBase.m_nSkillUnique));
            this.m_lbSkillName1.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_strTextKey));
        }
        BATTLESKILL_BASE battleSkillBase2 = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(charKindInfo.GetCHARKIND_STATINFO().kBattleSkillData[1].BattleSkillUnique);

        if (battleSkillBase2 != null)
        {
            this.m_dtSkillIcon2.SetTexture(NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillIconTexture(battleSkillBase2.m_nSkillUnique));
            this.m_lbSkillName2.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase2.m_strTextKey));
        }
        switch (eCharTribe)
        {
        case E_CHAR_TRIBE.HUMAN:
            this.m_dtWeapon1.SetTextureKey("Win_I_Weapon1");
            this.m_dtWeapon2.SetTextureKey("Win_I_Weapon2");
            this.m_lbClass.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50006"));
            this.m_lbInfo.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50011"));
            break;

        case E_CHAR_TRIBE.FURRY:
            this.m_dtWeapon1.SetTextureKey("Win_I_Weapon3");
            this.m_dtWeapon2.SetTextureKey("Win_I_Weapon6");
            this.m_lbClass.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50004"));
            this.m_lbInfo.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50008"));
            break;

        case E_CHAR_TRIBE.ELF:
            this.m_dtWeapon1.SetTextureKey("Win_I_Weapon7");
            this.m_dtWeapon2.SetTextureKey("Win_I_Weapon8");
            this.m_lbClass.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50007"));
            this.m_lbInfo.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50009"));
            break;

        case E_CHAR_TRIBE.HUMANF:
            this.m_dtWeapon1.SetTextureKey("Win_I_Weapon4");
            this.m_dtWeapon2.SetTextureKey("Win_I_Weapon5");
            this.m_lbClass.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50005"));
            this.m_lbInfo.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo("50010"));
            break;
        }
    }