private void OnNewApplyReaded() { PlayerPrefTool.SetIsThereNewApply(false); if (false == PlayerPrefTool.GetIsThereNewFriend() && false == PlayerPrefTool.GetIsThereNewGift()) { GameEvents.RedPointEvents.User_OnNewFriendEvent.SafeInvoke(false); } }
private void ShowGiftView() { GameEvents.RedPointEvents.Sys_OnNewGiftReadedEvent.SafeInvoke(); ShowGiftRedPoint(PlayerPrefTool.GetIsThereNewGift()); this.Refresh(FRIEND_UI_TOGGLE_TYPE.gift); GameEvents.RedPointEvents.Sys_OnNewFriendReadedEvent.SafeInvoke(); CurViewLogic().RequestViewGift(); }
public void ShowContent(bool v_) { m_friend_info_list_root.Visible = false; m_friend_application_root.Visible = false; m_friend_confirm_root.Visible = false; m_add_friend_root.Visible = false; m_gift_root.Visible = false; if (v_) { ShowConfirmRedPoint(false); ShowApplyRedPoint(PlayerPrefTool.GetIsThereNewApply()); ShowGiftRedPoint(PlayerPrefTool.GetIsThereNewGift()); this.SwitchUI(FRIEND_UI_TOGGLE_TYPE.Added); } }
public override void OnShow(object param) { ShowConfirmRedPoint(false); ShowApplyRedPoint(PlayerPrefTool.GetIsThereNewApply()); ShowGiftRedPoint(PlayerPrefTool.GetIsThereNewGift()); this.SwitchUI(FRIEND_UI_TOGGLE_TYPE.Added); m_toggle_info.Refresh((int)FRIEND_UI_TOGGLE_TYPE.Added, LocalizeModule.Instance.GetString("friend_1"), true, OnToggleClick); m_toggle_application.Refresh((int)FRIEND_UI_TOGGLE_TYPE.Agreeing, LocalizeModule.Instance.GetString("friend_2"), false, OnToggleClick); m_toggle_confirm.Refresh((int)FRIEND_UI_TOGGLE_TYPE.Addinfo, LocalizeModule.Instance.GetString("friend_3"), false, OnToggleClick); m_view_gifts_toggle.Refresh((int)FRIEND_UI_TOGGLE_TYPE.gift, LocalizeModule.Instance.GetString("friend_receive"), false, OnToggleClick); m_add_friend_toggle.Refresh((int)FRIEND_UI_TOGGLE_TYPE.scarch, LocalizeModule.Instance.GetString("friend_invite_btn"), false, OnToggleClick); m_application_switch.AddClickCallBack(OnApplicationToggleClicked); m_ignore_all_btn.AddClickCallBack(OnIgnoreAllClick); m_recommend_btn.AddClickCallBack(OnRecommendClick); }
private void OnRefreshByPlayerPrefs() { if (PlayerPrefTool.GetIsThereNewEmail()) { OnNewEmailNotify(null); } if (PlayerPrefTool.GetIsThereNewFriend() || PlayerPrefTool.GetIsThereNewApply() || PlayerPrefTool.GetIsThereNewGift()) { OnNewFriendNotify(null); } if (PlayerPrefTool.GetIsThereNewActivity()) { OnNewActivityNotify(null); } if (PlayerPrefTool.GetIsThereNewAchievement()) { OnNewAchievementNotify(null); } if (PlayerPrefTool.GetIsThereNewNotice()) { OnNewNoticeNotify(null); } #if OFFICER_SYS if (PlayerPrefTool.GetIsThereNewPolice()) { OnNewPoliceNotify(); } #endif if (PlayerPrefTool.GetIsThereNewChapterNPC()) { OnNewChapterTypeNotify(0); } if (PlayerPrefTool.GetIsThereNewChapterClue()) { OnNewChapterTypeNotify(1); } if (PlayerPrefTool.GetIsThereNewChapterScene()) { OnNewChapterTypeNotify(2); } }