From 745f4a9653da21502222d1d5cf19d89f09fcc3a9 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 24 十一月 2025 10:42:15 +0800
Subject: [PATCH] 262 幻境阁系统 内政没开启前内政入口不显示红点,头像入口和幻境阁内部正常显示红点
---
Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs b/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs
index 22e8364..5475be0 100644
--- a/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs
+++ b/Main/System/PhantasmPavilion/PhantasmPavilionManager.Redpoint.cs
@@ -4,13 +4,14 @@
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));
@@ -85,8 +86,7 @@
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);
@@ -121,6 +121,7 @@
public void UpdateRedPoint()
{
parentRedpoint.state = RedPointState.None;
+ parentRedpoint2.state = RedPointState.None;
if (!tabRedPointDict.IsNullOrEmpty())
{
@@ -129,10 +130,6 @@
item.Value.state = RedPointState.None;
}
}
-
-
- if (!IsFuncOpen())
- return;
// 鏈夊彲鎵嬪姩瑙i攣鐨�
UpdateRedPointByCanActivate(PhantasmPavilionType.Model, PhantasmPavilionRepointType.ModelNormal, 1);
@@ -161,6 +158,11 @@
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>();
@@ -275,6 +277,8 @@
public enum PhantasmPavilionRepointType
{
+ MainAffairs = 99, //鍐呮斂鍏ュ彛鐢�
+
Model = 10,
Face = 20,
Title = 30,
--
Gitblit v1.8.0