update message box

This commit is contained in:
NguyenVanDat
2026-02-03 10:38:59 +07:00
parent 2235beea6e
commit df5e889a67
@@ -15,6 +15,7 @@ namespace BrewMonster
{
public string Title;
public string Message;
public AUIDialog Dlg;
public MessageBoxType MessageBoxType;
public Action OnClickedYes;
public Action OnClickedNo;
@@ -43,13 +44,13 @@ namespace BrewMonster
private void OnOkClicked()
{
EventBus.Publish(new MessageBoxEvent(1,this));
EventBus.Publish(new MessageBoxEvent(1,_messageData.Dlg));
_messageData.OnClickedYes?.Invoke();
Show(false);
}
private void OnNoClicked()
{
EventBus.Publish(new MessageBoxEvent(0,this));
EventBus.Publish(new MessageBoxEvent(0,_messageData.Dlg));
_messageData.OnClickedNo?.Invoke();
Show(false);
}