コード例 #1
0
 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);
     this.mValues = GameUITools.FindGameObject("a", this.mRightInfoTable.gameObject).AddComponent<GUIAttributeValue>();
     this.mSkills = GameUITools.FindGameObject("b", this.mRightInfoTable.gameObject).AddComponent<LopetInfoSkillLayer>();
     this.mSkills.Init();
     this.mLopetDescSp = this.mRightInfoTable.transform.Find("e").GetComponent<UISprite>();
     this.mDesc = GameUITools.FindUILabel("desc", this.mLopetDescSp.gameObject);
 }
コード例 #2
0
 private void CreateObjects()
 {
     this.mSelectPop = GameUITools.FindGameObject("SelectPetPopUp", base.gameObject).AddComponent<MagicMirrorSelectPetPopUp>();
     this.mSelectPop.Init(this);
     this.mSelectPop.Hide();
     GameObject parent = GameUITools.FindGameObject("Window", base.gameObject);
     GameObject parent2 = GameUITools.RegisterClickEvent("InAdd", new UIEventListener.VoidDelegate(this.OnInAddClick), parent);
     this.mInAdd = GameUITools.RegisterClickEvent("Add", new UIEventListener.VoidDelegate(this.OnInAddClick), parent2);
     this.mInTips = GameUITools.FindGameObject("Tips", parent2);
     this.mInInfo = GameUITools.FindGameObject("Info", parent2);
     this.mInName = GameUITools.FindUILabel("Name", this.mInInfo);
     this.mInLevel = GameUITools.FindUILabel("Level", this.mInInfo);
     this.mInStars = GameUITools.FindGameObject("Stars", this.mInInfo).AddComponent<GUIStars>();
     this.mInStars.Init(5);
     this.mInValues = GameUITools.FindGameObject("Values", this.mInInfo).AddComponent<GUIAttributeValue>();
     this.mInSkills = GameUITools.FindGameObject("Skill", this.mInInfo).AddComponent<GUIPetSkills>();
     parent2 = GameUITools.RegisterClickEvent("OutAdd", new UIEventListener.VoidDelegate(this.OnOutAddClick), parent);
     this.mOutAdd = GameUITools.RegisterClickEvent("Add", new UIEventListener.VoidDelegate(this.OnOutAddClick), parent2);
     this.mOutTips = GameUITools.FindGameObject("Tips", parent2);
     this.mOutInfo = GameUITools.FindGameObject("Info", parent2);
     this.mOutName = GameUITools.FindUILabel("Name", this.mOutInfo);
     this.mOutLevel = GameUITools.FindUILabel("Level", this.mOutInfo);
     this.mOutStars = GameUITools.FindGameObject("Stars", this.mOutInfo).AddComponent<GUIStars>();
     this.mOutStars.Init(5);
     this.mOutValues = GameUITools.FindGameObject("Values", this.mOutInfo).AddComponent<GUIAttributeValue>();
     this.mOutSkills = GameUITools.FindGameObject("Skill", this.mOutInfo).AddComponent<GUIPetSkills>();
     GameUITools.RegisterClickEvent("RulesBtn", new UIEventListener.VoidDelegate(this.OnRulesClick), parent);
     this.mCost = GameUITools.FindGameObject("Cost", parent);
     this.mDiamond = GameUITools.FindUILabel("Diamond", this.mCost);
     this.mMagicSoul = GameUITools.FindUILabel("MagicSoul", this.mCost);
     this.mChangeBtn = GameUITools.RegisterClickEvent("ChangeBtn", new UIEventListener.VoidDelegate(this.OnChangeClick), parent).GetComponent<UIButton>();
     this.mChangeBtns = this.mChangeBtn.GetComponents<UIButton>();
     this.mChangeBtnEffect = GameUITools.FindGameObject("Effect", this.mChangeBtn.gameObject);
     this.RefreshInInfo();
 }
コード例 #3
0
 private void CreateObjects()
 {
     Transform transform = base.transform.Find("UIMiddle");
     this.mFlowerSp = transform.Find("flower").gameObject;
     this.mFlowerSp.transform.localScale = Vector3.zero;
     this.mUIEffect0 = this.mFlowerSp.transform.Find("ui57_4").gameObject;
     Tools.SetParticleRenderQueue2(this.mUIEffect0, 5500);
     NGUITools.SetActive(this.mUIEffect0, false);
     this.mUIEffect1 = base.transform.Find("Texture/ui57").gameObject;
     Tools.SetParticleRenderQueue2(this.mUIEffect1, 5490);
     NGUITools.SetActive(this.mUIEffect1, false);
     this.mUIEffect3 = base.transform.Find("Texture/ui57_5").gameObject;
     Tools.SetParticleRenderQueue2(this.mUIEffect3, 5450);
     NGUITools.SetActive(this.mUIEffect3, false);
     this.mUIEffect4 = base.transform.Find("Texture/ui57_6").gameObject;
     Tools.SetParticleRenderQueue2(this.mUIEffect4, 5550);
     NGUITools.SetActive(this.mUIEffect4, false);
     this.mCardModel = transform.Find("modelPos").gameObject;
     Transform transform2 = transform.Find("rightInfo");
     transform2.localScale = new Vector3(0f, 1f, 1f);
     this.mRightInfoBg = transform2.GetComponent<UISprite>();
     GameObject parent = GameUITools.FindGameObject("Info", this.mRightInfoBg.gameObject);
     this.mName = GameUITools.FindUILabel("Name", parent);
     this.mLevel = GameUITools.FindUILabel("Level", parent);
     this.mStars = GameUITools.FindGameObject("Stars", parent).AddComponent<GUIStars>();
     this.mStars.Init(5);
     this.mValues = GameUITools.FindGameObject("Values", parent).AddComponent<GUIAttributeValue>();
     this.mSkills = GameUITools.FindGameObject("Skill", parent).AddComponent<GUIPetSkills>();
     this.mContinueBtn = transform.Find("continueBtn").gameObject;
     UIEventListener expr_20C = UIEventListener.Get(this.mContinueBtn);
     expr_20C.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_20C.onClick, new UIEventListener.VoidDelegate(this.OnContinueBtnClick));
     this.mContinueScale = this.mContinueBtn.GetComponent<TweenScale>();
     this.mContinueBtn.transform.localScale = Vector3.zero;
     this.mSequenceForSuc = new Sequence(new SequenceParms().UpdateType(UpdateType.TimeScaleIndependentUpdate));
 }