|
@@ -42,8 +42,7 @@ namespace GFGGame
|
|
|
private List<EffectUI> _effectUIList = new List<EffectUI>();
|
|
|
private UI_ButtonModle1[] _btns;
|
|
|
private bool firstIn;
|
|
|
- //用于标记自动检测打开界面流程已执行完毕
|
|
|
- private bool AutoShowCompleted;
|
|
|
+
|
|
|
|
|
|
//用于分帧更新红点
|
|
|
private int redPointUpdateFrame = -1;
|
|
@@ -866,7 +865,7 @@ namespace GFGGame
|
|
|
|
|
|
private void OnRedDotChanged()
|
|
|
{
|
|
|
- LogUtil.LogEditor($"MainUIView OnRedDotChanged GameGlobal.AfterDataInited {GameGlobal.AfterDataInited} AutoShowCompleted {AutoShowCompleted}");
|
|
|
+ //LogUtil.LogEditor($"MainUIView OnRedDotChanged GameGlobal.AfterDataInited {GameGlobal.AfterDataInited} AutoShowCompleted {GameGlobal.AutoShowCompleted}");
|
|
|
//暂时用这种方法优化下,红点的实现要重构!!!
|
|
|
//LogUtil.LogEditor("MainUIView UpdateRedDot OnRedDotChanged");
|
|
|
redPointUpdateFrame = 0;
|
|
@@ -877,7 +876,7 @@ namespace GFGGame
|
|
|
{
|
|
|
if (redPointUpdateFrame < 0) return;
|
|
|
if (!GameGlobal.AfterDataInited) return;
|
|
|
- if (!AutoShowCompleted) return;
|
|
|
+ if (!GameGlobal.AutoShowCompleted) return;
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
LogUtil.LogEditor($"MainUIView UpdateRedDot redPointUpdateFrame {redPointUpdateFrame}");
|
|
|
if (redPointUpdateFrame == 0)
|
|
@@ -1060,7 +1059,7 @@ namespace GFGGame
|
|
|
}
|
|
|
private void CheckAutoShowViews()
|
|
|
{
|
|
|
- if (AutoShowCompleted) return;
|
|
|
+ if (GameGlobal.AutoShowCompleted) return;
|
|
|
if (!GameGlobal.AfterDataInited) return;
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
//if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
|
|
@@ -1097,7 +1096,7 @@ namespace GFGGame
|
|
|
ViewManager.Show<FieldFightEndView>();
|
|
|
return;
|
|
|
}
|
|
|
- AutoShowCompleted = true;
|
|
|
+ GameGlobal.AutoShowCompleted = true;
|
|
|
}
|
|
|
|
|
|
private void ServerTimeUpdate(object param = null)
|