NBC修改

This commit is contained in:
bob
2025-07-03 14:16:18 +08:00
parent 4febfadd56
commit 800e96aac7
2083 changed files with 60081 additions and 2942 deletions

View File

@@ -23,10 +23,7 @@ namespace NBF
public NoticeType Type;
public string Text;
}
public override string UIPackName => "Common";
public override string UIResName => "Notices";
private static bool _isOpen;
private static readonly Queue<NoticeData> _msgArr = new();
@@ -46,7 +43,7 @@ namespace NBF
Log.Info($"显示一个notice={msg}");
if (!_isOpen)
{
UI.Inst.OpenUI<Notices>();
Notices.Show();
}
_msgArr.Enqueue(new NoticeData { Type = noticeType, Text = msg });
@@ -75,8 +72,6 @@ namespace NBF
_startX = GRoot.inst.width - ItemWidth - Gap;
_itemUrl = UIPackage.GetItemURL(UIDef.Pack.Common, "NoticeItem");
_noticePool = new GObjectPool(ContentPane.container.cachedTransform);
MonoManager.Inst.OnUpdate += OnUpdate;
}
protected override void OnShow()