| | |
| | | |
| | | public partial class PhantasmPavilionManager : GameSystemManager<PhantasmPavilionManager> |
| | | { |
| | | public Redpoint parentRedpoint = new Redpoint(MainRedDot.MainAffairsRedpoint, MainRedDot.PhantasmPavilionRepoint); |
| | | //头像入口用 |
| | | public Redpoint parentRedpoint = new Redpoint(MainRedDot.PhantasmPavilionRepoint); |
| | | //内政用 |
| | | public Redpoint parentRedpoint2 = new Redpoint(MainRedDot.MainAffairsRedpoint, MainRedDot.PhantasmPavilionRepoint * 100 + (int)PhantasmPavilionRepointType.MainAffairs); |
| | | public Dictionary<PhantasmPavilionRepointType, Redpoint> tabRedPointDict = new Dictionary<PhantasmPavilionRepointType, Redpoint>(); |
| | | |
| | | private void InitTabRedPoint() |
| | | { |
| | | |
| | | |
| | | tabRedPointDict[PhantasmPavilionRepointType.Model] = new Redpoint(MainRedDot.PhantasmPavilionRepoint, GetRedpointId(PhantasmPavilionRepointType.Model)); |
| | | tabRedPointDict[PhantasmPavilionRepointType.Face] = new Redpoint(MainRedDot.PhantasmPavilionRepoint, GetRedpointId(PhantasmPavilionRepointType.Face)); |
| | | tabRedPointDict[PhantasmPavilionRepointType.Title] = new Redpoint(MainRedDot.PhantasmPavilionRepoint, GetRedpointId(PhantasmPavilionRepointType.Title)); |
| | |
| | | public void UpdateItemRedPoint(Image imgRed, PhantasmPavilionType type, int id) |
| | | { |
| | | imgRed.SetActive(false); |
| | | if (!IsFuncOpen()) |
| | | return; |
| | | |
| | | if (!Has(type, id)) |
| | | return; |
| | | PhantasmPavilionState state = GetUnLockState(type, id); |
| | |
| | | public void UpdateRedPoint() |
| | | { |
| | | parentRedpoint.state = RedPointState.None; |
| | | parentRedpoint2.state = RedPointState.None; |
| | | |
| | | if (!tabRedPointDict.IsNullOrEmpty()) |
| | | { |
| | |
| | | item.Value.state = RedPointState.None; |
| | | } |
| | | } |
| | | |
| | | |
| | | if (!IsFuncOpen()) |
| | | return; |
| | | |
| | | // 有可手动解锁的 |
| | | UpdateRedPointByCanActivate(PhantasmPavilionType.Model, PhantasmPavilionRepointType.ModelNormal, 1); |
| | |
| | | UpdateRedPointByNoSee(PhantasmPavilionType.Title, PhantasmPavilionRepointType.TitlePalace, 1); |
| | | UpdateRedPointByNoSee(PhantasmPavilionType.Title, PhantasmPavilionRepointType.TitleEvent, 2); |
| | | |
| | | |
| | | if (IsFuncOpen()) |
| | | { |
| | | parentRedpoint2.state = parentRedpoint.state; |
| | | } |
| | | } |
| | | |
| | | public List<int> newHeroIDModelList = new List<int>(); |
| | |
| | | |
| | | public enum PhantasmPavilionRepointType |
| | | { |
| | | MainAffairs = 99, //内政入口用 |
| | | |
| | | Model = 10, |
| | | Face = 20, |
| | | Title = 30, |