Esempio n. 1
0
 public void EnableUpdate(TopGoods.EGoodsUIType type)
 {
     this.StopUpdateTypes.Remove(type);
 }
Esempio n. 2
0
 private long GetSlotMask(TopGoods.EGoodsUIType type, long slot)
 {
     return slot << (int)((int)type * (int)TopGoods.EGoodsUIType.EGT_UIHonor);
 }
Esempio n. 3
0
 public void DisableUpdate(TopGoods.EGoodsUIType type)
 {
     this.StopUpdateTypes.Add(type);
 }
Esempio n. 4
0
 public void UpdateUIGoods(TopGoods.EGoodsUIType type, int num)
 {
     if (this.StopUpdateTypes.Contains(type))
     {
         return;
     }
     if (type == TopGoods.EGoodsUIType.EGT_UIEnergy)
     {
         this.UpdateUIEnergy(num);
         return;
     }
     if (type == TopGoods.EGoodsUIType.EGT_UIStamina)
     {
         this.UpdateUIStamina(num);
         return;
     }
     if (!this.eventRegister || this.goodsOldNum[(int)type] != num)
     {
         UILabel uILabel = this.goodsTxt[(int)type];
         uILabel.text = Tools.FormatCurrency(num);
         if (this.goodsOldNum[(int)type] != 0)
         {
             Sequence sequence = new Sequence();
             sequence.Append(HOTween.To(uILabel.gameObject.transform, 0.15f, new TweenParms().Prop("localScale", new Vector3(1.5f, 1.5f, 1.5f))));
             sequence.Append(HOTween.To(uILabel.gameObject.transform, 0.15f, new TweenParms().Prop("localScale", Vector3.one)));
             sequence.Play();
         }
         this.goodsOldNum[(int)type] = num;
     }
 }