public void SetBadge(bool showParticle = true) { GameWebAPI.RespDataMP_MyPage respDataMP_MyPage = DataMng.Instance().RespDataMP_MyPage; if (respDataMP_MyPage == null || respDataMP_MyPage.userNewsCountList == null) { return; } int num = respDataMP_MyPage.userNewsCountList.missionNewCount; int num2 = respDataMP_MyPage.userNewsCountList.missionRewardCount; int beginnerMissionNewCount = respDataMP_MyPage.userNewsCountList.beginnerMissionNewCount; int beginnerMissionRewardCount = respDataMP_MyPage.userNewsCountList.beginnerMissionRewardCount; num += beginnerMissionNewCount; num2 += beginnerMissionRewardCount; if (0 < num || this.dayChangeflg || 0 < num2) { this.SetActiveExclamationMark(true); } else { this.SetActiveExclamationMark(false); } if (showParticle) { this.ShowParticleMissionIcon(beginnerMissionNewCount, beginnerMissionRewardCount); } }
public void SetParticleMissionIcon() { GameWebAPI.RespDataMP_MyPage respDataMP_MyPage = DataMng.Instance().RespDataMP_MyPage; if (respDataMP_MyPage != null && respDataMP_MyPage.userNewsCountList != null) { int beginnerMissionNewCount = respDataMP_MyPage.userNewsCountList.beginnerMissionNewCount; int beginnerMissionRewardCount = respDataMP_MyPage.userNewsCountList.beginnerMissionRewardCount; this.ShowParticleMissionIcon(beginnerMissionNewCount, beginnerMissionRewardCount); } }
public void FrinedListCheck() { GameWebAPI.RespDataMP_MyPage respDataMP_MyPage = DataMng.Instance().RespDataMP_MyPage; if (respDataMP_MyPage != null) { int newFriend = respDataMP_MyPage.userNewsCountList.newFriend; int friendApplication = respDataMP_MyPage.userNewsCountList.friendApplication; base.gameObject.SetActive(newFriend > 0 || friendApplication > 0); this.badgeActive = (newFriend > 0 || friendApplication > 0); } }
public void SetBadgeOnly() { this.mypageData = DataMng.Instance().RespDataMP_MyPage; if (this.mypageData != null && this.mypageData.userNewsCountList != null) { if (this.mypageData.userNewsCountList.prize != null && this.mypageData.userNewsCountList.prize != "0") { this.BadgeObject.SetActive(true); this.PlayAnim(); } else { this.BadgeObject.SetActive(false); this.RunITween("DoNothing", true); this.presentIcon.transform.localRotation = Quaternion.identity; } } }
private void SetAllAlertIcon() { bool flag = false; GameWebAPI.RespDataMP_MyPage respDataMP_MyPage = DataMng.Instance().RespDataMP_MyPage; if (respDataMP_MyPage != null && respDataMP_MyPage.userNewsCountList != null && (0 < respDataMP_MyPage.userNewsCountList.facilityNewCount || 0 < respDataMP_MyPage.userNewsCountList.decorationNewCount)) { flag = true; } if (!this.isShowBtnFacility && (flag || this.facilityStockIcon.gameObject.activeSelf)) { this.allAlertIcon.gameObject.SetActive(true); } else { this.allAlertIcon.gameObject.SetActive(false); } }
public static void SetFacilityShopButtonBadge() { if (null != GUIFace.instance && null != GUIFace.instance.facilityShopButton) { GameWebAPI.RespDataMP_MyPage respDataMP_MyPage = DataMng.Instance().RespDataMP_MyPage; if (respDataMP_MyPage != null && respDataMP_MyPage.userNewsCountList != null) { if (0 < respDataMP_MyPage.userNewsCountList.facilityNewCount || 0 < respDataMP_MyPage.userNewsCountList.decorationNewCount) { GUIFace.instance.facilityShopButton.SetBadge(true); } else { GUIFace.instance.facilityShopButton.SetBadge(false); } } } GUIFace.SetFacilityAlertIcon(); }
private IEnumerator PenaltyCheck(Action OnPenaltyLevelTwo) { GameWebAPI.RespDataMP_MyPage mypageData = DataMng.Instance().RespDataMP_MyPage; if (mypageData.penaltyUserInfo != null && (mypageData.penaltyUserInfo.penaltyLevel == "1" || mypageData.penaltyUserInfo.penaltyLevel == "2")) { bool isClose = false; Action <int> onClosedAction = delegate(int x) { if (mypageData.penaltyUserInfo.penaltyLevel == "2") { OnPenaltyLevelTwo(); } isClose = true; }; string title = StringMaster.GetString("PenaltyTitle"); string message = mypageData.penaltyUserInfo.penalty.message; AlertManager.ShowAlertDialog(onClosedAction, title, message, AlertManager.ButtonActionType.Close, false); while (!isClose) { yield return(null); } } yield break; }