From 133646332ffa46968e53d485a8f7542401c4b1bc Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Wed, 11 Aug 2021 02:54:33 +0200 Subject: [PATCH] refactor: OnToastX -> ToastX --- Dalamud/Game/Gui/ToastGui.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dalamud/Game/Gui/ToastGui.cs b/Dalamud/Game/Gui/ToastGui.cs index c16066a09..64931416e 100644 --- a/Dalamud/Game/Gui/ToastGui.cs +++ b/Dalamud/Game/Gui/ToastGui.cs @@ -85,17 +85,17 @@ namespace Dalamud.Game.Gui /// /// Event that will be fired when a toast is sent by the game or a plugin. /// - public event OnNormalToastDelegate OnToast; + public event OnNormalToastDelegate Toast; /// /// Event that will be fired when a quest toast is sent by the game or a plugin. /// - public event OnQuestToastDelegate OnQuestToast; + public event OnQuestToastDelegate QuestToast; /// /// Event that will be fired when an error toast is sent by the game or a plugin. /// - public event OnErrorToastDelegate OnErrorToast; + public event OnErrorToastDelegate ErrorToast; #endregion @@ -231,7 +231,7 @@ namespace Dalamud.Game.Gui Speed = (ToastSpeed)isFast, }; - this.OnToast?.Invoke(ref str, ref options, ref isHandled); + this.Toast?.Invoke(ref str, ref options, ref isHandled); // do nothing if handled if (isHandled) @@ -323,7 +323,7 @@ namespace Dalamud.Game.Gui PlaySound = playSound == 1, }; - this.OnQuestToast?.Invoke(ref str, ref options, ref isHandled); + this.QuestToast?.Invoke(ref str, ref options, ref isHandled); // do nothing if handled if (isHandled) @@ -409,7 +409,7 @@ namespace Dalamud.Game.Gui var isHandled = false; var str = this.ParseString(text); - this.OnErrorToast?.Invoke(ref str, ref isHandled); + this.ErrorToast?.Invoke(ref str, ref isHandled); // do nothing if handled if (isHandled)