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

@@ -10,9 +10,6 @@ namespace NBF
{
public partial class MessageBox : UIPanel
{
public override string UIPackName => "Common";
public override string UIResName => "MessageBox";
private static string _confirmText;
private static string _cancelText;
private static string _title;
@@ -44,14 +41,14 @@ namespace NBF
_content = msg;
_title = title;
_style = style;
UI.Inst.OpenUI<MessageBox>();
Show();
}
protected override void OnInit()
{
this.AutoAddClick(OnClick);
ShowAnim = UIPanelAnimation.GetCenterScaleBig(this);
HideAnim = UIPanelAnimation.GetCenterScaleBig(this, true);
ShowAnim = this.ShowCenterScaleBig;
HideAnim = this.HideCenterScaleBig;
IsModal = true;
IsDontBack = true;
InputManager.OnUICanceled += OnUICanceled;