0312 区分战斗频繁消息提示; 修复盛典任务红点
| | |
| | | |
| | | }; |
| | | |
| | | public static int[] galaTypes = new int[] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; |
| | | |
| | | void UpdateRedpoint(List<int> _types) |
| | | { |
| | | if (_types.IsNullOrEmpty()) |
| | |
| | | } |
| | | |
| | | bool isGalaRed = false; |
| | | if (_types.Count == 1) |
| | | { |
| | | if (galaTypes.Contains(_types[0])) |
| | | { |
| | | _types = galaTypes.ToList(); |
| | | } |
| | | } |
| | | |
| | | foreach (var type in _types) |
| | | { |
| | |
| | | float currentTime = Time.time; |
| | | if (currentTime - lastTime < turnCoolDown) |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("BattleCoolDown"); |
| | | Debug.Log("BattleCoolDown tip"); |
| | | SysNotifyMgr.Instance.ShowTip("BattleCoolDownClient"); |
| | | return; |
| | | } |
| | | lastTime = currentTime; |
| | |
| | | SysInfoConfig cfg = SysInfoConfig.Get(key); |
| | | if (cfg != null) |
| | | { |
| | | if (string.IsNullOrEmpty(cfg.richText)) |
| | | { |
| | | return; |
| | | } |
| | | tipInfoList.Clear(); |
| | | tipInfoList.AddRange(msg); |
| | | AnalysisSysmsg(cfg); |
| | |
| | | using UnityEngine.UI; |
| | | |
| | | |
| | | ////开服活动-主线关卡活动 |
| | | ////开服活动-庆典 |
| | | public class OSGalaMissionWin : UIBase |
| | | { |
| | | [SerializeField] ScrollerController scroller; |
| | | |
| | | int[] types = new int[] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }; |
| | | |
| | | |
| | | List<int> ids = new List<int>(); |
| | | protected override void OnPreOpen() |
| | |
| | | // -1 为所有类型 |
| | | if (type >= 2 && type <= 19 || type == -1) |
| | | { |
| | | ids = AchievementManager.Instance.GetAchievementIDsByTypes(types); |
| | | ids = AchievementManager.Instance.GetAchievementIDsByTypes(AchievementManager.galaTypes); |
| | | scroller.m_Scorller.RefreshActiveCellViews(); |
| | | } |
| | | } |
| | | |
| | | void CreateScroller() |
| | | { |
| | | ids = AchievementManager.Instance.GetAchievementIDsByTypes(types); |
| | | ids = AchievementManager.Instance.GetAchievementIDsByTypes(AchievementManager.galaTypes); |
| | | var count = ids.Count; |
| | | scroller.Refresh(); |
| | | for (int i = 0; i < count; i++) |