Exemplo n.º 1
0
 public void Refresh(PvpInfo info)
 {
     if (info == null)
     {
         base.gameObject.SetActive(false);
         return;
     }
     base.gameObject.SetActive(true);
     if (this.mRank != null)
     {
         if (info.ArenaLowRank == info.ArenaHighRank)
         {
             this.mRank.text = Singleton<StringManager>.Instance.GetString("activityLuckyDrawRuleRank", new object[]
             {
                 info.ArenaHighRank
             });
         }
         else
         {
             this.mRank.text = Singleton<StringManager>.Instance.GetString("activityLuckyDrawRuleRank", new object[]
             {
                 string.Format("{0}~{1}", info.ArenaHighRank, info.ArenaLowRank)
             });
         }
     }
     this.mStringBuilder.Remove(0, this.mStringBuilder.Length).Append("x").Append(info.ArenaRewardDiamond);
     this.mGemNum.text = this.mStringBuilder.ToString();
     this.mStringBuilder.Remove(0, this.mStringBuilder.Length).Append("x").Append(info.ArenaRewardHonor);
     this.mHonorNum.text = this.mStringBuilder.ToString();
 }
Exemplo n.º 2
0
 private int SortPvpInfo(PvpInfo info1, PvpInfo info2)
 {
     return info1.ID.CompareTo(info2.ID);
 }
Exemplo n.º 3
0
 private void RefreshRankReward(PvpInfo info)
 {
     if (info == null)
     {
         return;
     }
     this.Rankreward.text = Singleton<StringManager>.Instance.GetString("pvp4Txt18", new object[]
     {
         info.ArenaLowRank
     });
     this.RankrewardDiamond.text = info.ArenaRewardDiamond.ToString();
     this.RankrewardHonor.text = info.ArenaRewardHonor.ToString();
 }