public void GotoBonusStars()
 {
     this.m_currentMode = MODE.BONUS_STARS;
     this.m_medalPlayMaker.SendEvent("PageTear");
     this.m_rewardChestPage.SetActive(false);
     this.m_welcomeItems.SetActive(false);
     this.m_bonusStarItems.SetActive(true);
     this.m_bonusStarText.Text = this.m_bonusStars.ToString();
     GameStrings.PluralNumber[] numberArray1 = new GameStrings.PluralNumber[1];
     GameStrings.PluralNumber   number       = new GameStrings.PluralNumber {
         m_number = this.m_bonusStars
     };
     numberArray1[0] = number;
     GameStrings.PluralNumber[] pluralNumbers = numberArray1;
     this.m_bonusStarLabel.Text = GameStrings.FormatPlurals("GLOBAL_SEASON_END_BONUS_STARS_LABEL", pluralNumbers, new object[0]);
     this.m_bonusStarTitle.Text = GameStrings.Get("GLOBAL_SEASON_END_BONUS_STAR_TITLE");
 }
 protected override void OnDataSet(bool updateVisuals)
 {
     if (updateVisuals)
     {
         ClassChallengeUnlockData data = base.Data as ClassChallengeUnlockData;
         if (data == null)
         {
             Debug.LogWarning(string.Format("ClassChallengeUnlock.OnDataSet() - Data {0} is not ClassChallengeUnlockData", base.Data));
         }
         else
         {
             List <string> list  = new List <string>();
             List <string> list2 = new List <string>();
             foreach (DbfRecord record in GameDbf.AdventureMission.GetRecords())
             {
                 if (record.GetInt("REQ_WING_ID") == data.WingID)
                 {
                     int       @int    = record.GetInt("SCENARIO_ID");
                     DbfRecord record2 = GameDbf.Scenario.GetRecord(@int);
                     if (record2 == null)
                     {
                         Debug.LogError(string.Format("Unable to find Scenario record with ID: {0}", @int));
                     }
                     else if (record2.GetInt("MODE_ID") == 4)
                     {
                         string val = null;
                         if (record.TryGetAssetPath("CLASS_CHALLENGE_PREFAB_POPUP", out val))
                         {
                             string locString = record2.GetLocString("SHORT_NAME");
                             list.Add(val);
                             list2.Add(locString);
                         }
                         else
                         {
                             Debug.LogWarning(string.Format("CLASS_CHALLENGE_PREFAB_POPUP not define for AdventureMission SCENARIO_ID: {0}", @int));
                         }
                     }
                 }
             }
             if (list.Count == 0)
             {
                 Debug.LogError(string.Format("Unable to find AdventureMission record with REQ_WING_ID: {0}.", data.WingID));
             }
             else
             {
                 string str3;
                 GameStrings.PluralNumber[] numberArray1 = new GameStrings.PluralNumber[1];
                 GameStrings.PluralNumber   number       = new GameStrings.PluralNumber {
                     m_number = list.Count
                 };
                 numberArray1[0] = number;
                 GameStrings.PluralNumber[] pluralNumbers = numberArray1;
                 this.m_headerText.Text = GameStrings.FormatPlurals("GLOBAL_REWARD_CLASS_CHALLENGE_HEADLINE", pluralNumbers, new object[0]);
                 if (list.Count > 0)
                 {
                     str3 = string.Join(", ", list2.ToArray());
                 }
                 else
                 {
                     str3 = string.Empty;
                 }
                 string source = GameDbf.Wing.GetRecord(data.WingID).GetLocString("CLASS_CHALLENGE_REWARD_SOURCE");
                 base.SetRewardText(str3, string.Empty, source);
                 foreach (string str5 in list)
                 {
                     GameObject child = AssetLoader.Get().LoadGameObject(FileUtils.GameAssetPathToName(str5), true, false);
                     if (child != null)
                     {
                         GameUtils.SetParent(child, this.m_classFrameContainer, false);
                         child.transform.localRotation = Quaternion.identity;
                         this.m_classFrameContainer.AddObject(child, true);
                         this.m_classFrames.Add(child);
                     }
                 }
                 this.m_classFrameContainer.UpdatePositions();
                 base.SetReady(true);
                 base.EnableClickCatcher(true);
                 base.RegisterClickListener(new Reward.OnClickedCallback(this.OnClicked));
             }
         }
     }
 }