Example #1
0
 private void CreateObjects()
 {
     this.mCommonEquipInfoLayer = GameUITools.FindGameObject("CommonEquipInfoLayer", base.gameObject).AddComponent<CommonEquipInfoLayer>();
     this.ui52 = GameUITools.FindGameObject("ui52", base.gameObject);
     this.ui53 = GameUITools.FindGameObject("ui53", base.gameObject);
     Tools.SetParticleRQWithUIScale(this.ui52, 4500);
     Tools.SetParticleRQWithUIScale(this.ui53, 4500);
     this.ui52.gameObject.SetActive(false);
     this.ui53.gameObject.SetActive(false);
     GameObject gameObject = GameUITools.FindGameObject("RefineInfo/Info/RefineExp", base.gameObject);
     this.mLevel = GameUITools.FindUILabel("Level", gameObject);
     this.mExpProgressBar = GameUITools.FindGameObject("ExpProgressBar", gameObject).GetComponent<UISlider>();
     this.mBarFG = GameUITools.FindUISprite("FG", this.mExpProgressBar.gameObject);
     this.mBarValue = GameUITools.FindUILabel("Value", this.mExpProgressBar.gameObject);
     gameObject = GameUITools.FindGameObject("RefineLevel", gameObject.transform.parent.gameObject);
     this.mLevelStartingValue = GameUITools.FindUILabel("StartingValue", gameObject);
     this.mLevelNextValue = GameUITools.FindUILabel("NextValue", gameObject);
     this.mLevelEffect = GameUITools.FindGameObject("Effect", gameObject);
     this.mPoint0 = GameUITools.FindUILabel("Point0", gameObject.transform.parent.gameObject);
     this.mPoint0StartingValue = GameUITools.FindUILabel("StartingValue", this.mPoint0.gameObject);
     this.mPoint0AddedValue = GameUITools.FindUILabel("AddedValue", this.mPoint0.gameObject);
     this.mPoint1 = GameUITools.FindUILabel("Point1", gameObject.transform.parent.gameObject);
     this.mPoint1StartingValue = GameUITools.FindUILabel("StartingValue", this.mPoint1.gameObject);
     this.mPoint1AddedValue = GameUITools.FindUILabel("AddedValue", this.mPoint1.gameObject);
     this.mLegendPoint = GameUITools.FindUILabel("LegendPoint", gameObject.transform.parent.gameObject);
     gameObject = GameUITools.FindGameObject("Items", gameObject.transform.parent.parent.gameObject);
     List<ItemInfo> list = new List<ItemInfo>();
     foreach (ItemInfo current in Globals.Instance.AttDB.ItemDict.Values)
     {
         if (current.Type == 4 && current.SubType == 2)
         {
             list.Add(current);
         }
     }
     int num = 0;
     while (num < gameObject.transform.childCount && num < list.Count)
     {
         this.mItems.Add(gameObject.transform.GetChild(num).gameObject.AddComponent<EquipRefineExpItem>());
         this.mItems[num].InitWithBaseScene(this, list[num]);
         num++;
     }
 }
Example #2
0
 private void CreateObjects()
 {
     this.mTitle = GameUITools.FindUILabel("Title", base.gameObject);
     this.ui61 = GameUITools.FindGameObject("ui61", base.gameObject);
     Tools.SetParticleRQWithUIScale(this.ui61, 6000);
     this.ui61.SetActive(false);
     GameUITools.RegisterClickEvent("CloseBtn", new UIEventListener.VoidDelegate(this.OnCloseBtnClick), base.gameObject);
     this.mCommonEquipInfoLayer = CommonEquipInfoLayer.CreateCommonEquipInfoLayer(base.gameObject, new Vector3(-210f, -13f, 0f));
     GameObject gameObject = GameUITools.FindGameObject("InfoPanel/Contents", base.gameObject);
     this.mEnhanceContent = GameUITools.FindUILabel("EnhanceContent", gameObject);
     this.mEnhanceValues = GameUITools.FindUILabel("Values", this.mEnhanceContent.gameObject);
     this.mRefineContent = GameUITools.FindUILabel("RefineContent", gameObject);
     this.mRefineValues = GameUITools.FindUILabel("Values", this.mRefineContent.gameObject);
     this.mRefineTitle = GameUITools.FindUILabel("Title", this.mRefineContent.gameObject);
     this.mRefineContentBG = GameUITools.FindGameObject("BG", this.mRefineContent.gameObject).transform;
     this.mLegendContent = GameUITools.FindUILabel("LegendContent", gameObject);
     this.mLegendContentBG = GameUITools.FindGameObject("BG", this.mLegendContent.gameObject).transform;
     this.mSet = GameUITools.FindUILabel("Set", gameObject);
     Transform transform = GameUITools.FindGameObject("Items", this.mSet.gameObject).transform;
     int num = 0;
     while (num < this.mSetItems.Length && num < transform.childCount)
     {
         this.mSetItems[num] = CommonIconItem.Create(transform.GetChild(num).gameObject, Vector3.zero, null, false, 0.8f, null);
         this.mEffects[num] = GameUITools.FindGameObject("Effect", transform.GetChild(num).gameObject);
         num++;
     }
     gameObject = GameUITools.FindGameObject("Points", this.mSet.gameObject);
     for (int i = 0; i < gameObject.transform.childCount; i++)
     {
         this.mSetPoints[i] = gameObject.transform.GetChild(i).gameObject.AddComponent<GUIEquipInfoPopUp.EquipSetPoint>();
     }
     gameObject = GameUITools.FindGameObject("ButtonGroup", base.gameObject);
     this.mChangeBtn = GameUITools.RegisterClickEvent("Change", new UIEventListener.VoidDelegate(this.OnChangeBtnClick), gameObject);
     this.mChangeRed = GameUITools.FindGameObject("Red", this.mChangeBtn);
     this.mUnloadBtn = GameUITools.RegisterClickEvent("Unload", new UIEventListener.VoidDelegate(this.OnUnlocaBtnClick), gameObject);
     this.mEnhanceBtn = GameUITools.RegisterClickEvent("Enhance", new UIEventListener.VoidDelegate(this.OnEnhanceBtnClick), gameObject);
     this.mRefineBtn = GameUITools.RegisterClickEvent("Refine", new UIEventListener.VoidDelegate(this.OnRefineBtnClick), gameObject);
     this.mFragmentSlider = GameUITools.FindGameObject("Fragment/ExpProgressBar", gameObject).GetComponent<UISlider>();
     this.mFragmentValue = GameUITools.FindUILabel("Value", this.mFragmentSlider.gameObject);
     GameUITools.RegisterClickEvent("Add", new UIEventListener.VoidDelegate(this.OnSourceBtnClick), this.mFragmentSlider.transform.parent.gameObject);
     gameObject = GameUITools.FindGameObject("Tabs", base.gameObject);
     this.mSourceTab = GameUITools.FindGameObject("SourceTab", gameObject).GetComponent<UIToggle>();
     this.mInfoTab = GameUITools.FindGameObject("InfoTab", gameObject).GetComponent<UIToggle>();
     UIEventListener expr_389 = UIEventListener.Get(this.mSourceTab.gameObject);
     expr_389.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_389.onClick, new UIEventListener.VoidDelegate(this.OnTabClick));
     UIEventListener expr_3BA = UIEventListener.Get(this.mInfoTab.gameObject);
     expr_3BA.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_3BA.onClick, new UIEventListener.VoidDelegate(this.OnTabClick));
     this.mContentsTable = GameUITools.FindGameObject("Source/Panel/Contents", base.gameObject).AddComponent<FragmentSourceUITable>();
     this.mContentsTable.maxPerLine = 1;
     this.mContentsTable.arrangement = UICustomGrid.Arrangement.Vertical;
     this.mContentsTable.cellWidth = 370f;
     this.mContentsTable.cellHeight = 76f;
     this.mContentsTable.gapHeight = 6f;
     this.mContentsTable.gapWidth = 0f;
     this.mContentsTable.bgScrollView = GameUITools.FindGameObject("SourceBG", base.gameObject).GetComponent<UIDragScrollView>();
     this.mNoSource = GameUITools.FindUILabel("NoSource", this.mContentsTable.transform.parent.parent.gameObject);
 }
Example #3
0
 private void CreateObjects()
 {
     this.mCommonEquipInfoLayer = GameUITools.FindGameObject("CommonEquipInfoLayer", base.gameObject).AddComponent<CommonEquipInfoLayer>();
     this.ui53 = GameUITools.FindGameObject("ui53", base.gameObject);
     Tools.SetParticleRQWithUIScale(this.ui53, 4500);
     this.ui53.gameObject.SetActive(false);
     GameObject gameObject = GameUITools.FindGameObject("RefineInfo/Info/Level", base.gameObject);
     this.mLevelStartingValue = GameUITools.FindUILabel("StartingValue", gameObject);
     this.mLevelEffect = GameUITools.FindGameObject("Effect", gameObject);
     this.mLevelNextValue = GameUITools.FindUILabel("NextValue", gameObject);
     gameObject = gameObject.transform.parent.gameObject;
     this.mPoint0 = GameUITools.FindUILabel("Point0", gameObject);
     this.mPoint0StartingValue = GameUITools.FindUILabel("StartingValue", this.mPoint0.gameObject);
     this.mPoint0AddedValue = GameUITools.FindUILabel("AddedValue", this.mPoint0.gameObject);
     this.mPoint1 = GameUITools.FindUILabel("Point1", gameObject);
     this.mPoint1StartingValue = GameUITools.FindUILabel("StartingValue", this.mPoint1.gameObject);
     this.mPoint1AddedValue = GameUITools.FindUILabel("AddedValue", this.mPoint1.gameObject);
     this.mLegendPoint = GameUITools.FindUILabel("LegendPoint", gameObject);
     gameObject = gameObject.transform.parent.gameObject;
     this.mRefineBtn = GameUITools.RegisterClickEvent("RefineBtn", new UIEventListener.VoidDelegate(this.OnRefineBtnClick), gameObject);
     this.mGoldValue = GameUITools.FindUILabel("GoldTxt/Value", gameObject);
     gameObject = GameUITools.FindGameObject("Items", gameObject);
     int num = 0;
     while (num < 2 && num < gameObject.transform.childCount)
     {
         this.mItems.Add(gameObject.transform.GetChild(num).gameObject.AddComponent<TrinketRefineExpItem>());
         this.mItems[num].InitWithBaseScene();
         num++;
     }
 }
 private void CreateObjects()
 {
     this.mCommonEquipInfoLayer = GameUITools.FindGameObject("CommonEquipInfoLayer", base.gameObject).AddComponent<CommonEquipInfoLayer>();
     GameObject gameObject = GameUITools.FindGameObject("EnhanceInfo", base.gameObject);
     this.mEffect = GameUITools.FindGameObject("ui51", gameObject);
     Tools.SetParticleRQWithUIScale(this.mEffect, 4500);
     this.mEffect.gameObject.SetActive(false);
     gameObject = GameUITools.FindGameObject("EnhanceInfo/Info", base.gameObject);
     this.mLevel = GameUITools.FindUILabel("Level", gameObject);
     this.mAddLevel = GameUITools.FindUILabel("AddLevel", this.mLevel.gameObject);
     this.mExpProgressBar = GameUITools.FindGameObject("ExpProgressBar", this.mLevel.gameObject).GetComponent<UISlider>();
     this.mBarFG = GameUITools.FindUISprite("FG", this.mExpProgressBar.gameObject);
     this.mBarBG = GameUITools.FindUISprite("BG", this.mExpProgressBar.gameObject);
     this.mBarValue = GameUITools.FindUILabel("Value", this.mExpProgressBar.gameObject);
     this.mPoint0 = GameUITools.FindUILabel("Point0", gameObject);
     this.mPoint0StartingValue = GameUITools.FindUILabel("StartingValue", this.mPoint0.gameObject);
     this.mPoint0AddedValue = GameUITools.FindUILabel("AddedValue", this.mPoint0.gameObject);
     this.mPoint1 = GameUITools.FindUILabel("Point1", gameObject);
     this.mPoint1StartingValue = GameUITools.FindUILabel("StartingValue", this.mPoint1.gameObject);
     this.mPoint1AddedValue = GameUITools.FindUILabel("AddedValue", this.mPoint1.gameObject);
     gameObject = GameUITools.FindGameObject("Items", gameObject.transform.parent.gameObject);
     for (int i = 0; i < gameObject.transform.childCount; i++)
     {
         this.mItems.Add(gameObject.transform.GetChild(i).gameObject.AddComponent<TrinketEnhanceExpItem>());
         this.mItems[i].InitWithBaseScene(this);
     }
     gameObject = gameObject.transform.parent.gameObject;
     this.mGoldValue = GameUITools.FindUILabel("GoldTxt/Value", gameObject);
     this.mAutoAddBtn = GameUITools.RegisterClickEvent("AutoAddBtn", new UIEventListener.VoidDelegate(this.OnAutoAddBtnClick), gameObject);
     this.mEnhanceBtn = GameUITools.RegisterClickEvent("EnhanceBtn", new UIEventListener.VoidDelegate(this.OnEnhanceBtnClick), gameObject);
 }
Example #5
0
 private void CreateObjects()
 {
     this.mCommonEquipInfoLayer = GameUITools.FindGameObject("CommonEquipInfoLayer", base.gameObject).AddComponent<CommonEquipInfoLayer>();
     GameObject gameObject = GameUITools.FindGameObject("EnhanceInfo", base.gameObject);
     this.mEffect = GameUITools.FindGameObject("ui51", gameObject);
     Tools.SetParticleRQWithUIScale(this.mEffect, 4500);
     this.mEffect.gameObject.SetActive(false);
     gameObject = GameUITools.FindGameObject("Info/EnhanceLevel", gameObject);
     this.mLevelStartingValue = GameUITools.FindUILabel("StartingValue", gameObject);
     this.mLevelNextValue = GameUITools.FindUILabel("NextValue", gameObject);
     this.mLevelEffect = GameUITools.FindGameObject("Effect", gameObject);
     gameObject = gameObject.transform.parent.gameObject;
     this.mPointName = GameUITools.FindUILabel("Point", gameObject);
     this.mPointStartingValue = GameUITools.FindUILabel("StartingValue", this.mPointName.gameObject);
     this.mPointAddedValue = GameUITools.FindUILabel("AddedValue", this.mPointName.gameObject);
     gameObject = gameObject.transform.parent.gameObject;
     this.mGoldValue = GameUITools.FindUILabel("GoldTxt/Value", gameObject);
     this.mCriticalLayer = GameUITools.FindGameObject("CriticalPanel", base.gameObject).AddComponent<CriticalPanel>();
     this.mCriticalLayer.InitCriticalLayer();
     this.mAutoEnhanceBtn = GameUITools.RegisterClickEvent("AutoEnhanceBtn", new UIEventListener.VoidDelegate(this.OnAutoEnhanceBtnClick), gameObject);
     this.mEnhanceBtn = GameUITools.RegisterClickEvent("EnhanceBtn", new UIEventListener.VoidDelegate(this.OnEnhanceBtnClick), gameObject);
 }