NBC修改
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user