This commit is contained in:
CortexCore
2024-06-14 16:16:13 +08:00
parent ca93bd2c56
commit dfa249677f
7 changed files with 40 additions and 41 deletions

View File

@@ -107,6 +107,8 @@ namespace BITKit.UX
private Button _cancelButton;
private void Start()
{
destroyCancellationToken.Register(Dispose);
DI.Register<IUXDialogue,UnityDialogue>();
UXUtils.Inject(this);
@@ -114,8 +116,14 @@ namespace BITKit.UX
Close();
}
private void Dispose()
{
}
internal void PrintAlertMessage(AlertMessage message)
{
if(destroyCancellationToken.IsCancellationRequested)return;
document.rootVisualElement.SetActive(true);
_titleLabel.text = message.title;
_contextLabel.text = message.message;