Example #1
0
    protected override void Init()
    {
        base.Init();

        instance = this;
        HeroDetList.gameObject.SetActive(true);

        foreach (Transform rune in transform.Find("RunesSeat"))
        {
            runeList.Add(rune.gameObject);
        }

        backBtn.onClick    = OnBackBtnClick;
        detailsTab.onClick = OnDetailsTabClick;

        isOne = true;

        UIHeroList = UIHeroList.instance;

        PowerProgress.width        = 0;
        PowerProgress.pivot        = UIWidget.Pivot.Left;
        IntelligenceProgress.width = 0;
        IntelligenceProgress.pivot = UIWidget.Pivot.Left;
        AgilityProgress.width      = 0;
        AgilityProgress.pivot      = UIWidget.Pivot.Left;
    }
Example #2
0
 /// <summary>
 /// item初始化函数
 /// </summary>
 protected override void InitItem()
 {
     heroDet = UI_HeroDetail.instance;
     //初始化
     count   = transform.Find("Count").GetComponent <UILabel>();
     mailBtn = transform.Find("MailBtn").GetComponent <UIButton>();
     UIEventListener.Get(mailBtn.gameObject).onClick += OnBtnClick;
     UIEventListener.Get(mailBtn.gameObject).onPress += OnBtnPress;
 }
Example #3
0
 void Start()
 {
     selectHero     = GetHeroAttribute(0);
     ItemHeroDetail = Resources.Load("Prefab/UIPanel/ItemHeroDetail") as GameObject;
     herodetail     = GetComponentInParent <UI_HeroDetail>();
     EventDelegate.Set(SwitchBtn.onClick, OnSwitchBtnClick);
     UIEventListener.Get(leftBtn.gameObject).onClick  += OnLeftBtnClick;
     UIEventListener.Get(rightBtn.gameObject).onClick += OnRightBtnClick;
     RefreshHeroIcon();
 }
Example #4
0
    int expDiffe;//经验差值

    #endregion

    /// <summary>
    /// item初始化函数
    /// </summary>
    protected override void InitItem()
    {
        hd_ins = UI_HeroDetail.instance;
        //初始化
        mailBtn = transform.Find("MailBtn").GetComponent <UIButton>();

        UIEventListener.Get(mailBtn.gameObject).onClick += OnBtnClick;
        UIEventListener.Get(mailBtn.gameObject).onPress += OnPressBtnClick;

        count = transform.Find("Count").GetComponent <UILabel>();

        hd         = playerData.GetInstance().GetHeroDataByID(Globe.selectHero.hero_id);
        hero       = hd.node;
        playerNode = FSDataNodeTable <PlayerLevelUpNode> .GetSingleton().FindDataByType(playerData.GetInstance().selfData.level);
    }
Example #5
0
    protected override void Init()
    {
        base.Init();

        mask.gameObject.SetActive(false);

        //upgradeBtn.onClick = OnUpgradeBtnClick;

        UIEventListener.Get(aKeyUpgradeBtn.gameObject).onClick = OnAKeyUpgradeBtnClick;

        //UIEventListener.Get(backBtn.gameObject).onClick = OnBackBtnClick;

        hd_ins = UI_HeroDetail.instance;

        playerNode = FSDataNodeTable <PlayerLevelUpNode> .GetSingleton().FindDataByType(playerData.GetInstance().selfData.level);
    }
Example #6
0
 protected override void Init()
 {
     dingweigrid = transform.Find("DingweiContainer/Grid").GetComponent <UIGrid>();
     tediangrid  = transform.Find("TedianContainer/Grid").GetComponent <UIGrid>();
     heroInfo    = transform.Find("HeroInfo").GetComponent <UILabel>();
     attrValue   = transform.Find("obj/HeroPreview/AttrValue").GetComponent <UILabel>();
     attrName    = transform.Find("obj/HeroPreview/AttrName").GetComponent <UILabel>();
     heroDetail  = GetComponentInParent <UI_HeroDetail>();
     EventDelegate.Set(AttributesBtn.onClick, OnAttributesBtn);
     EventDelegate.Set(IntroductionBtn.onClick, OnIntroductionBtn);
     AttributesImg.gameObject.SetActive(true);
     //PowerProgress.width = 0;
     //PowerProgress.pivot = UIWidget.Pivot.Left;
     //IntelligenceProgress.width = 0;
     //IntelligenceProgress.pivot = UIWidget.Pivot.Left;
     //AgilityProgress.width = 0;
     //AgilityProgress.pivot = UIWidget.Pivot.Left;
     Mount.onClick = ShowMount;
     Baby.onClick  = ShowBaby;
 }
Example #7
0
    void Start()
    {
        EventDelegate.Set(iconBtn.onClick, OnIconBtnClick);

        ui_HeroDetail = UI_HeroDetail.instance;
    }