mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
25 lines
728 B
C#
25 lines
728 B
C#
using MiraAPI.Hud;
|
|
|
|
namespace MiraAPI.Events.Mira;
|
|
|
|
/// <summary>
|
|
/// Invoked when a Mira Button click is cancelled. Do not use for vanilla buttons.
|
|
/// </summary>
|
|
/// <typeparam name="T">The Mira Button type.</typeparam>
|
|
public sealed class MiraButtonCancelledEvent<T> : MiraEvent where T : CustomActionButton
|
|
{
|
|
/// <summary>
|
|
/// Gets Mira Button whose click was cancelled.
|
|
/// </summary>
|
|
public T Button { get; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MiraButtonCancelledEvent{T}"/> class.
|
|
/// </summary>
|
|
/// <param name="button">The Mira Button whose click was cancelled.</param>
|
|
public MiraButtonCancelledEvent(T button)
|
|
{
|
|
Button = button;
|
|
}
|
|
}
|