private void CreateObjects()
 {
     this.mContentForDetailInfo = base.transform.Find("rightInfoPanel").gameObject;
     this.mRightInfoTable = base.transform.Find("rightInfoPanel/contents").gameObject.AddComponent<UITable>();
     this.mRightInfoTable.columns = 1;
     this.mRightInfoTable.direction = UITable.Direction.Down;
     this.mRightInfoTable.sorting = UITable.Sorting.Alphabetic;
     this.mRightInfoTable.hideInactive = true;
     this.mRightInfoTable.keepWithinPanel = true;
     this.mRightInfoTable.padding = new Vector2(0f, 2f);
     this.mScrollBar = base.transform.Find("infoScrollBar").GetComponent<UIScrollBar>();
     this.mContentForHowGet = base.transform.Find("rightInfoPanel2").gameObject;
     this.mSuiPianTxt = this.mContentForHowGet.transform.Find("txt0").GetComponent<UILabel>();
     this.mSuiPianTxt.gameObject.SetActive(false);
     this.mRightInfoTableForHowGet = base.transform.Find("rightInfoPanel2/contents").gameObject.AddComponent<GUIPetInfoSceneHowGetTable>();
     this.mRightInfoTableForHowGet.maxPerLine = 1;
     this.mRightInfoTableForHowGet.arrangement = UICustomGrid.Arrangement.Vertical;
     this.mRightInfoTableForHowGet.cellWidth = 360f;
     this.mRightInfoTableForHowGet.cellHeight = 76f;
     this.mRightInfoTableForHowGet.gapHeight = 4f;
     this.mRightInfoTableForHowGet.gapWidth = 0f;
     Transform transform = this.mRightInfoTable.transform.Find("a");
     this.mHpNum = transform.Find("hpTxt/num").GetComponent<UILabel>();
     this.mAttackNum = transform.Find("attackTxt/num").GetComponent<UILabel>();
     this.mWufangNum = transform.Find("wufangTxt/num").GetComponent<UILabel>();
     this.mFafangNum = transform.Find("fafangTxt/num").GetComponent<UILabel>();
     this.mSkillGo = this.mRightInfoTable.transform.Find("b").gameObject;
     this.mSkillLayer = this.mSkillGo.transform.Find("summonSkill").gameObject.AddComponent<GUIPetInfoSkillLayer>();
     this.mSkillLayer.Init(true, true);
     Transform transform2 = this.mRightInfoTable.transform.Find("c");
     this.mRelationBgSp = transform2.GetComponent<UISprite>();
     this.mTianFuSp = this.mRightInfoTable.transform.Find("d").GetComponent<UISprite>();
     this.mTianFuDesc = this.mTianFuSp.transform.Find("desc").GetComponent<UILabel>();
     this.mPetDescSp = this.mRightInfoTable.transform.Find("e").GetComponent<UISprite>();
     this.mPetDesc = this.mPetDescSp.transform.Find("desc").GetComponent<UILabel>();
     this.mSuiPianState = base.transform.Find("suiPianState").gameObject;
     Transform transform3 = this.mSuiPianState.transform;
     this.mSuiPianStateBg = transform3.Find("tab0SpBg").gameObject;
     for (int i = 0; i < 2; i++)
     {
         this.mTab0s[i] = transform3.Find(string.Format("tab{0}", i)).gameObject;
         UIEventListener expr_346 = UIEventListener.Get(this.mTab0s[i]);
         expr_346.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_346.onClick, new UIEventListener.VoidDelegate(this.OnTab0Click));
         this.mTab1s[i] = transform3.Find(string.Format("tabF{0}", i)).gameObject;
     }
     this.mGUISimpleSM = new GUISimpleSM<string, string>("init");
     this.mGUISimpleSM.Configure("init").Permit("onState0", "state0").Permit("onState1", "state1").Permit("onState2", "state2");
     this.mGUISimpleSM.Configure("state0").Permit("onState1", "state1").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState0();
     });
     this.mGUISimpleSM.Configure("state1").Permit("onState0", "state0").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState1();
     });
     this.mGUISimpleSM.Configure("state2").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterState2();
     });
 }
 private void CreateObjects()
 {
     this.mTextureBgGo = base.transform.Find("TextureBG/Texture").gameObject;
     this.mLopetBG = base.transform.Find("LopetBG").gameObject;
     Transform transform = base.transform.Find("UIMiddle");
     this.mTextureBg = transform.Find("Texture").GetComponent<UITexture>();
     Material material = new Material(Shader.Find("Game/Transparent/Panel TextureMask"));
     this.mTextureBg.material = material;
     UIPanel component = transform.Find("commonPet/midInfo/modelsBg/contentsPanel").GetComponent<UIPanel>();
     Vector4 finalClipRegion = component.finalClipRegion;
     finalClipRegion.x -= 40f;
     finalClipRegion.z = (finalClipRegion.z + 200f) * 0.5f;
     finalClipRegion.w = (finalClipRegion.w + 1024f) * 0.5f;
     this.mTextureBg.material.SetVector("_ClipRange0", new Vector4(-finalClipRegion.x / finalClipRegion.z, -finalClipRegion.y / finalClipRegion.w, 1f / finalClipRegion.z, 1f / finalClipRegion.w));
     this.mSelectItems[0] = transform.Find("pet0").gameObject.AddComponent<GUITeamManageSelectItem>();
     this.mLeftScrollView = transform.Find("leftInfo").GetComponent<UIScrollView>();
     Transform transform2 = this.mLeftScrollView.transform.Find("Content");
     this.mLeftContent = transform2.GetComponent<UIGrid>();
     for (int i = 1; i < 6; i++)
     {
         this.mSelectItems[i] = transform2.Find(string.Format("pet{0}", i)).gameObject.AddComponent<GUITeamManageSelectItem>();
     }
     this.mCommonPetGo = transform.Find("commonPet").gameObject;
     this.mGUIPetTitleInfo = this.mCommonPetGo.transform.Find("topInfo").gameObject.AddComponent<GUIPetTitleInfo>();
     this.mGUIPetTitleInfo.InitWithBaseScene();
     Transform transform3 = this.mCommonPetGo.transform.Find("midInfo");
     this.mUIScrollView = transform3.Find("modelsBg/contentsPanel").GetComponent<UIScrollView>();
     UIScrollView expr_23E = this.mUIScrollView;
     expr_23E.onDragStarted = (UIScrollView.OnDragNotification)Delegate.Combine(expr_23E.onDragStarted, new UIScrollView.OnDragNotification(this.OnModelSWDragStarted));
     UIScrollView expr_265 = this.mUIScrollView;
     expr_265.onStoppedMoving = (UIScrollView.OnDragNotification)Delegate.Combine(expr_265.onStoppedMoving, new UIScrollView.OnDragNotification(this.OnModelSWDragFinished));
     this.mModelTable = transform3.Find("modelsBg/contentsPanel/contents").gameObject.AddComponent<UIGrid>();
     this.mModelTable.arrangement = UIGrid.Arrangement.Horizontal;
     this.mModelTable.cellWidth = 450f;
     this.mModelTable.cellHeight = 360f;
     this.mModelTable.animateSmoothly = true;
     this.mModelTable.hideInactive = true;
     this.mModelTable.keepWithinPanel = true;
     this.mModelTable.sorting = UIGrid.Sorting.Alphabetic;
     this.mModelTable.enabled = false;
     GameObject gameObject = transform3.Find("modelsBg/contentsPanel/contents").gameObject;
     this.mModelCenterChild = gameObject.AddComponent<GUICenterModelItem>();
     this.mModelCenterChild.Init();
     this.mModelCenterChild.nextPageThreshold = 120f;
     this.mModelCenterChild.springStrength = 8f;
     for (int j = 0; j < 6; j++)
     {
         this.mTeamModelItems[j] = gameObject.transform.Find(string.Format("teamManageModel{0}", j)).gameObject.AddComponent<GUITeamManageModelItem>();
         this.mTeamModelItems[j].InitWithBaseScene(this);
         this.mModelWidgets[j] = this.mTeamModelItems[j].transform;
     }
     if (Tools.CanPlay(GameConst.GetInt32(201), this.IsLocalPlayer))
     {
         this.mSelectItems[4].gameObject.SetActive(true);
         this.mTeamModelItems[4].gameObject.SetActive(true);
     }
     else
     {
         this.mSelectItems[4].gameObject.SetActive(false);
         this.mTeamModelItems[4].gameObject.SetActive(false);
     }
     for (int k = 0; k < 6; k++)
     {
         this.mEquipItems[k] = transform3.Find(string.Format("item{0}", k)).gameObject.AddComponent<GUITeamManageEquipItem>();
         this.mEquipItems[k].InitWithBaseScene(this, k);
     }
     this.mYangChengBtn = transform3.Find("yangCBtn").gameObject;
     UIEventListener expr_4A0 = UIEventListener.Get(this.mYangChengBtn);
     expr_4A0.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_4A0.onClick, new UIEventListener.VoidDelegate(this.OnYangCBtnClick));
     this.mYangChengMark = this.mYangChengBtn.transform.Find("Effect").gameObject;
     this.mYangChengMark.SetActive(false);
     this.mEnhanceBtn = transform3.Find("enhanceBtn").gameObject;
     UIEventListener expr_50F = UIEventListener.Get(this.mEnhanceBtn);
     expr_50F.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_50F.onClick, new UIEventListener.VoidDelegate(this.OnEnhanceBtnClick));
     this.mShiZhuangBtn = transform3.Find("shiZhuangBtn").gameObject;
     UIEventListener expr_552 = UIEventListener.Get(this.mShiZhuangBtn);
     expr_552.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_552.onClick, new UIEventListener.VoidDelegate(this.OnShiZhuangBtnClick));
     this.mShiZhuangBtnEffect = this.mShiZhuangBtn.transform.Find("Effect").gameObject;
     this.mShiZhuangBtnEffect.SetActive(false);
     this.mShiZhuangBtn.SetActive(false);
     this.mChangePetBtn = transform3.Find("changePetBtn").gameObject;
     UIEventListener expr_5CD = UIEventListener.Get(this.mChangePetBtn);
     expr_5CD.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_5CD.onClick, new UIEventListener.VoidDelegate(this.OnChangePetBtnClick));
     this.mChangePetBtnEffect = this.mChangePetBtn.transform.Find("Effect").gameObject;
     this.mChangePetBtnEffect.SetActive(false);
     this.mChangePetBtn.SetActive(false);
     this.mEnhanceAllBtn = transform3.Find("enhanceAllBtn").gameObject;
     UIEventListener expr_648 = UIEventListener.Get(this.mEnhanceAllBtn);
     expr_648.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_648.onClick, new UIEventListener.VoidDelegate(this.OnEnhanceAllBtnClick));
     this.mHuanZhuangBtn = transform3.Find("huanZhuangBtn").gameObject;
     UIEventListener expr_68B = UIEventListener.Get(this.mHuanZhuangBtn);
     expr_68B.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_68B.onClick, new UIEventListener.VoidDelegate(this.OnHuanZhuangBtnClick));
     Transform transform4 = this.mCommonPetGo.transform.Find("rightInfo");
     this.mRightInfoTable = transform4.Find("rightInfoPanel/contents").GetComponent<UITable>();
     this.mSkillGo = this.mRightInfoTable.transform.Find("b").gameObject;
     this.mSkillLayer = this.mSkillGo.transform.Find("summonSkill").gameObject.AddComponent<GUIPetInfoSkillLayer>();
     this.mSkillLayer.Init(false, false);
     this.mSkillGo.SetActive(false);
     Transform transform5 = this.mRightInfoTable.transform.Find("a");
     this.mHpNum = transform5.Find("hpTxt/num").GetComponent<UILabel>();
     this.mHpNum.text = string.Empty;
     this.mAttackNum = transform5.Find("attackTxt/num").GetComponent<UILabel>();
     this.mAttackNum.text = string.Empty;
     this.mWuFangNum = transform5.Find("wufangTxt/num").GetComponent<UILabel>();
     this.mWuFangNum.text = string.Empty;
     this.mFaFangNum = transform5.Find("fafangTxt/num").GetComponent<UILabel>();
     this.mFaFangNum.text = string.Empty;
     Transform transform6 = this.mRightInfoTable.transform.Find("c");
     UIEventListener expr_80E = UIEventListener.Get(transform6.gameObject);
     expr_80E.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_80E.onClick, new UIEventListener.VoidDelegate(this.OnPetInfoCPartClick));
     this.mYuanFenDesc = transform6.Find("yuanfenDesc").GetComponent<UILabel>();
     UIEventListener expr_856 = UIEventListener.Get(this.mYuanFenDesc.gameObject);
     expr_856.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_856.onClick, new UIEventListener.VoidDelegate(this.OnYuanFenClick));
     this.mYuanFenDesc.text = string.Empty;
     this.mLittlePet = transform.Find("littlePet").gameObject;
     this.mPetZhuWeiBtn = this.mLittlePet.transform.Find("zhuWeiBtn").gameObject;
     this.mLopetLayer = transform.Find("Lopet").gameObject.AddComponent<TeamLopetLayer>();
     this.mLopetLayer.gameObject.SetActive(false);
     this.mPetZhuWeiMark = this.mPetZhuWeiBtn.transform.Find("mark").gameObject;
     this.mPetZhuWeiMark.SetActive(false);
     UIEventListener expr_920 = UIEventListener.Get(this.mPetZhuWeiBtn);
     expr_920.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_920.onClick, new UIEventListener.VoidDelegate(this.OnPetZhuWeiBtnClick));
     this.mPetZhuWeiBtn.SetActive(this.IsLocalPlayer && Tools.CanPlay(GameConst.GetInt32(29), true));
     Transform transform7 = this.mLittlePet.transform.Find("pets");
     for (int l = 0; l < 6; l++)
     {
         this.mAssistPets[l] = transform7.Find(string.Format("pet{0}", l)).gameObject.AddComponent<GUITeamManageAssitPetItem>();
         this.mAssistPets[l].InitWithBaseScene(this, l);
     }
     Transform transform8 = this.mLittlePet.transform.Find("yuanFenInfo");
     this.mPetYuanFenItemScrollView = transform8.Find("contentsPanel").GetComponent<UIScrollView>();
     this.mGUIPetYuanFenItemTable = transform8.Find("contentsPanel/contents").gameObject.AddComponent<UITable>();
     this.mGUIPetYuanFenItemTable.columns = 1;
     this.mGUIPetYuanFenItemTable.direction = UITable.Direction.Down;
     this.mGUIPetYuanFenItemTable.sorting = UITable.Sorting.None;
     this.mGUIPetYuanFenItemTable.hideInactive = true;
     this.mGUIPetYuanFenItemTable.keepWithinPanel = true;
     this.mGUIPetYuanFenItemTable.padding = new Vector2(0f, 0f);
     this.mGUISimpleSM = new GUISimpleSM<string, string>("init");
     this.mGUISimpleSM.Configure("init").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet");
     this.mGUISimpleSM.Configure("avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet").PermitReentry("showAvatar").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterAvatar();
     });
     this.mGUISimpleSM.Configure("pet0").Permit("showAvatar", "avatar").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet").Ignore("showPet0").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet0();
     });
     this.mGUISimpleSM.Configure("pet1").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Permit("showLopet", "lopet").Ignore("showPet1").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet1();
     });
     this.mGUISimpleSM.Configure("pet2").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet3", "pet3").Permit("showLopet", "lopet").Ignore("showPet2").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet2();
     });
     this.mGUISimpleSM.Configure("lopet").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showPet3", "pet3").Ignore("showLopet").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterLopet();
     });
     this.mGUISimpleSM.Configure("pet3").Permit("showAvatar", "avatar").Permit("showPet0", "pet0").Permit("showPet1", "pet1").Permit("showPet2", "pet2").Permit("showLopet", "lopet").Ignore("showPet3").OnEntry(delegate(GUISimpleSM<string, string>.Transition t)
     {
         this.OnEnterPet3();
     });
 }
 private void CreateObjects()
 {
     this.mRightInfoTable = base.transform.Find("contents").gameObject.AddComponent<UITable>();
     this.mRightInfoTable.columns = 1;
     this.mRightInfoTable.direction = UITable.Direction.Down;
     this.mRightInfoTable.sorting = UITable.Sorting.Alphabetic;
     this.mRightInfoTable.hideInactive = true;
     this.mRightInfoTable.keepWithinPanel = true;
     this.mRightInfoTable.padding = new Vector2(0f, 2f);
     Transform transform = this.mRightInfoTable.transform.Find("a");
     this.mHpNum = transform.Find("hpTxt/num").GetComponent<UILabel>();
     this.mAttackNum = transform.Find("attackTxt/num").GetComponent<UILabel>();
     this.mWufangNum = transform.Find("wufangTxt/num").GetComponent<UILabel>();
     this.mFafangNum = transform.Find("fafangTxt/num").GetComponent<UILabel>();
     this.mSkillGo = this.mRightInfoTable.transform.Find("b").gameObject;
     this.mSkillLayer = this.mSkillGo.transform.Find("summonSkill").gameObject.AddComponent<GUIPetInfoSkillLayer>();
     this.mSkillLayer.Init(true, true);
     Transform transform2 = this.mRightInfoTable.transform.Find("c");
     this.mRelationBgSp = transform2.GetComponent<UISprite>();
     this.mTianFuSp = this.mRightInfoTable.transform.Find("d").GetComponent<UISprite>();
     this.mTianFuDesc = this.mTianFuSp.transform.Find("desc").GetComponent<UILabel>();
     this.mPetDescSp = this.mRightInfoTable.transform.Find("e").GetComponent<UISprite>();
     this.mPetDesc = this.mPetDescSp.transform.Find("desc").GetComponent<UILabel>();
 }