public void EnableUpdate(TopGoods.EGoodsUIType type) { this.StopUpdateTypes.Remove(type); }
private long GetSlotMask(TopGoods.EGoodsUIType type, long slot) { return slot << (int)((int)type * (int)TopGoods.EGoodsUIType.EGT_UIHonor); }
public void DisableUpdate(TopGoods.EGoodsUIType type) { this.StopUpdateTypes.Add(type); }
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; } }