Add `IDialogParent.AddOnScreenMessage` extension
This commit is contained in:
parent
5ef398c309
commit
36df9c387b
|
@ -7,6 +7,9 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
public static class DialogControllerExtensions
|
||||
{
|
||||
public static void AddOnScreenMessage(this IDialogParent dialogParent, string message, int? duration = null)
|
||||
=> dialogParent.DialogController.AddOnScreenMessage(message, duration);
|
||||
|
||||
public static void DoWithTempMute(this IDialogController dialogController, Action action)
|
||||
{
|
||||
dialogController.StopSound();
|
||||
|
|
|
@ -321,7 +321,7 @@ namespace BizHawk.Client.Common
|
|||
public void PopupMessage(string message) => _dialogParent.ModalMessageBox(message, "Warning", EMsgBoxIcon.Warning);
|
||||
|
||||
private void Output(string message)
|
||||
=> _dialogParent.DialogController.AddOnScreenMessage(message);
|
||||
=> _dialogParent.AddOnScreenMessage(message);
|
||||
|
||||
private void LatchInputToUser()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue