public void SetUpBoostAnimator() { boostAnimator.SetupUI(delegate(BoostStatus update_boost) { if (update_boost != null) { UpdateShowBoost(update_boost); } else { EndShowBoost(); } }, delegate(BoostStatus change_boost) { if (change_boost != null) { ChangeShowBoost((USE_ITEM_EFFECT_TYPE)change_boost.type); UpdateShowBoost(change_boost); } else { EndShowBoost(); } }); }
public override void UpdateUI() { UserInfo userInfo = MonoBehaviourSingleton <UserInfoManager> .I.userInfo; UserStatus userStatus = MonoBehaviourSingleton <UserInfoManager> .I.userStatus; SetSupportEncoding(base._transform, UI.LBL_NAME, true); SetLabelText((Enum)UI.LBL_NAME, Utility.GetNameWithColoredClanTag(string.Empty, userInfo.name, true, true)); SetLabelText((Enum)UI.LBL_LEVEL, userStatus.level.ToString()); SetLabelText((Enum)UI.LBL_CRYSTAL, userStatus.crystal.ToString("N0")); SetLabelText((Enum)UI.LBL_MONEY, userStatus.money.ToString("N0")); SetProgressValue((Enum)UI.PBR_EXP, userStatus.ExpProgress01); InitDeactive((Enum)UI.SPR_EXP_NEXT); if (TutorialStep.HasAllTutorialCompleted() && !MonoBehaviourSingleton <UIManager> .I.IsEnableTutorialMessage() && TutorialMessage.GetCursor(0) == null) { SetTouchAndRelease((Enum)UI.SPR_BG02, "EXP_NEXT_SHOW", "EXP_NEXT_HIDE", (object)null); } SetBadge((Enum)UI.BTN_MENU, MonoBehaviourSingleton <PresentManager> .I.presentNum + MonoBehaviourSingleton <FriendManager> .I.noReadMessageNum + (GameSaveData.instance.IsShowNewsNotification() ? 1 : 0), 3, -15, -8, false); if (boostAnimator == null) { boostAnimator = this.GetComponentInChildren <StatusBoostAnimator>(); } boostAnimator.SetupUI(delegate(BoostStatus update_boost) { if (update_boost != null) { UpdateShowBoost(update_boost); } else { EndShowBoost(); } }, delegate(BoostStatus change_boost) { if (change_boost != null) { ChangeShowBoost(change_boost.type); UpdateShowBoost(change_boost); } else { EndShowBoost(); } }); SetFontStyle((Enum)UI.LBL_BOOST_RATE, 2); SetFontStyle((Enum)UI.LBL_BOOST_TIME, 2); }