mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
refactor: OnToastX -> ToastX
This commit is contained in:
parent
84d525a304
commit
133646332f
1 changed files with 6 additions and 6 deletions
|
|
@ -85,17 +85,17 @@ namespace Dalamud.Game.Gui
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event that will be fired when a toast is sent by the game or a plugin.
|
/// Event that will be fired when a toast is sent by the game or a plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event OnNormalToastDelegate OnToast;
|
public event OnNormalToastDelegate Toast;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event that will be fired when a quest toast is sent by the game or a plugin.
|
/// Event that will be fired when a quest toast is sent by the game or a plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event OnQuestToastDelegate OnQuestToast;
|
public event OnQuestToastDelegate QuestToast;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event that will be fired when an error toast is sent by the game or a plugin.
|
/// Event that will be fired when an error toast is sent by the game or a plugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event OnErrorToastDelegate OnErrorToast;
|
public event OnErrorToastDelegate ErrorToast;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ namespace Dalamud.Game.Gui
|
||||||
Speed = (ToastSpeed)isFast,
|
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
|
// do nothing if handled
|
||||||
if (isHandled)
|
if (isHandled)
|
||||||
|
|
@ -323,7 +323,7 @@ namespace Dalamud.Game.Gui
|
||||||
PlaySound = playSound == 1,
|
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
|
// do nothing if handled
|
||||||
if (isHandled)
|
if (isHandled)
|
||||||
|
|
@ -409,7 +409,7 @@ namespace Dalamud.Game.Gui
|
||||||
var isHandled = false;
|
var isHandled = false;
|
||||||
var str = this.ParseString(text);
|
var str = this.ParseString(text);
|
||||||
|
|
||||||
this.OnErrorToast?.Invoke(ref str, ref isHandled);
|
this.ErrorToast?.Invoke(ref str, ref isHandled);
|
||||||
|
|
||||||
// do nothing if handled
|
// do nothing if handled
|
||||||
if (isHandled)
|
if (isHandled)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue