示例#1
0
 protected void UpdatePageBtns(int newSelPage)
 {
     for (int i = 0; i < this.m_ScrollLayoutTop.get_childCount(); i++)
     {
         Transform       child     = this.m_ScrollLayoutTop.GetChild(i);
         BossBookPageBtn component = child.GetComponent <BossBookPageBtn>();
         component.SetSelect(component.pageId == newSelPage);
     }
 }
示例#2
0
    private void OnClickPageBtn(GameObject go)
    {
        BossBookPageBtn component  = go.get_transform().get_parent().GetComponent <BossBookPageBtn>();
        BMuLuFenYe      bMuLuFenYe = DataReader <BMuLuFenYe> .Get(component.pageId);

        if (bMuLuFenYe != null && bMuLuFenYe.level > EntityWorld.Instance.EntSelf.Lv)
        {
            UIManagerControl.Instance.ShowToastText(string.Format(GameDataUtils.GetChineseContent(606121, false), bMuLuFenYe.level));
            return;
        }
        this.SelPage(component.pageId);
    }
示例#3
0
 protected override void OnEnable()
 {
     base.OnEnable();
     this.SwitchModelAndDrop(true);
     base.SetAsFirstSibling();
     EventDispatcher.Broadcast <bool, RTManager.RtType>("RTManager.ENABLE_PROJECTION_TYPE", true, RTManager.RtType.ActorModel1);
     RTManager.Instance.SetRotate(true, false);
     if (this.m_ScrollLayoutTop.get_childCount() > 0)
     {
         int num = BossBookManager.Instance.CurrentUITabIndex;
         num = ((num >= 0 && num < this.m_ScrollLayoutTop.get_childCount()) ? num : 0);
         BossBookPageBtn component = this.m_ScrollLayoutTop.GetChild(num).GetComponent <BossBookPageBtn>();
         this.SelPage(component.pageId);
     }
 }