示例#1
0
    public override void OnInit()
    {
        base.OnInit();
        AddPropChangedNotify((int)MVCPropertyID.enCardBag, OnPropertyChanged);

        m_cost = FindChildComponent <UILabel>("Command_Number");

        m_phyAttack  = FindChildComponent <UILabel>("PhyAttack_Number");
        m_magAttack  = FindChildComponent <UILabel>("MagAttack_Number");
        m_hp         = FindChildComponent <UILabel>("HP_Number");
        m_occupation = FindChildComponent <UILabel>("Occupation_Lable");
        m_type       = FindChildComponent <UILabel>("Race_Lable");

        m_curLevel           = FindChildComponent <UILabel>("Level_Live");
        m_maxLevel           = FindChild("Level_Top");
        m_skillParent        = FindChild("Skill");
        m_passiveSkillParent = FindChild("PassiveSkill");

        m_skillNoneLabel = FindChildComponent <UILabel>("PassiveSkillNone");

        m_skillList        = new UICardDetailSkillItem[6];
        m_passvieSkillList = new UICardDetailSkillItem[4];

        m_grid         = FindChildComponent <UIGrid>("OptionGrid");
        m_levelUpBtn   = FindChildComponent <UIButton>("ALeveUp");
        m_evolutionBtn = FindChildComponent <UIButton>("BEvolution");
        m_breachBtn    = FindChildComponent <UIButton>("Breach");

        m_model = FindChild("Model");

        m_tips = FindChild("Tips");

        m_tipsSkillName = FindChildComponent <UILabel>("SkillName");

        m_skillGetTips = FindChildComponent <UILabel>("SkillGetTips");

        m_tipsSkillDes   = FindChildComponent <UILabel>("SkillDes");
        m_tipsSkillCD    = FindChildComponent <UILabel>("SkillCD");
        m_tipsSkillLevel = FindChildComponent <UILabel>("SkillLevel");

        m_raceTexture = FindChild("RaceTexture");
        m_occTexture  = FindChild("OccTexture");



        m_switchSkillTips = FindChild("SwitchSkillTips");
        m_comboItem       = FindChild("Combo");

        m_tipsSkillType = FindChild("SkillType");

        m_cardPanel = UICardDetailCardPanel.Create();
        m_cardPanel.SetParent(WindowRoot);

//        m_next      = FindChild("Next");
//        m_pre       = FindChild("Pre");
    }
    static public UICardDetailCardPanel Create()
    {
        UICardDetailCardPanel self = UIManager.Singleton.LoadUI <UICardDetailCardPanel>("UI/UICardDetailCardPanel", UIManager.Anchor.Center);

        return(self);
    }