| System/DailyQuest/DayRemind.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/OpenServerActivity/FestivalRedpackModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/OpenServerActivity/FestivalRedpackWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/DailyQuest/DayRemind.cs
@@ -47,6 +47,7 @@ public const string LEAGUE_NOTICE_REDPOINT = "LeagueNoticeRedpoint"; public const string FAIRYGRABBOSS_NOTICE_REDPOINT = "FairyGrabBossRedpoint"; public const string TEAM_TICKET_FAIRYLAND = "TeamTicketFairyLand"; public const string FESTIVALREDPACKREMIND = "FestivalRedpackRemind"; public Dictionary<string, int[]> dayRemindDic = new Dictionary<string, int[]>(); public bool GetDayRemind(string _remindKey) @@ -102,6 +103,7 @@ SetDayRemind(LEAGUE_NOTICE_REDPOINT); SetDayRemind(FAIRYGRABBOSS_NOTICE_REDPOINT); SetDayRemind(TEAM_TICKET_FAIRYLAND); SetDayRemind(FESTIVALREDPACKREMIND); } private void SetDayRemind(string _key) System/OpenServerActivity/FestivalRedpackModel.cs
@@ -103,6 +103,7 @@ public readonly Redpoint systemRedpoint = new Redpoint(REDPOINTID, 2091901); public readonly Redpoint taskRedpoint = new Redpoint(REDPOINTID, 2091902); public readonly Redpoint receiveRedpoint = new Redpoint(REDPOINTID, 2091903); public readonly Redpoint dailyRemindRedpoint = new Redpoint(REDPOINTID, 2091910); public event Action<int> onStateUpate; public event Action redpackGrabRefresh; @@ -548,11 +549,18 @@ return redpoint.state == RedPointState.GetReward; } public void SetDayRemind() { DayRemind.Instance.SetDayRemind(DayRemind.FESTIVALREDPACKREMIND, true); UpdateRedpoint(); } private void UpdateRedpoint() { var existSystemRedpack = false; var existFinishTask = false; var existUnGetRedpack = false; var dailyRemind = false; if (IsOpen) { OperationFestivalRedpack operation; @@ -624,10 +632,16 @@ } } } if (!DayRemind.Instance.GetDayRemind(DayRemind.FESTIVALREDPACKREMIND)) { dailyRemind = true; } } systemRedpoint.state = existSystemRedpack ? RedPointState.GetReward : RedPointState.None; taskRedpoint.state = existFinishTask ? RedPointState.Simple : RedPointState.None; receiveRedpoint.state = existUnGetRedpack ? RedPointState.GetReward : RedPointState.None; dailyRemindRedpoint.state = dailyRemind ? RedPointState.Simple : RedPointState.None; } } System/OpenServerActivity/FestivalRedpackWin.cs
@@ -56,6 +56,8 @@ achieveModel.achievementProgressUpdateEvent += FestivalAchievementRefresh; model.taskRedpackRefresh += TaskRedpackRefresh; Display(); model.SetDayRemind(); } protected override void OnAfterOpen()