event now passes the button that sent the event.
This commit is contained in:
@@ -9,7 +9,8 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||
/// <summary>
|
||||
/// Function to be called when button is clicked.
|
||||
/// </summary>
|
||||
public delegate void Clicked();
|
||||
/// <param name="button">The button that was clicked.</param>
|
||||
public delegate void Clicked(Button button);
|
||||
|
||||
/// <summary>
|
||||
/// A very primitive button containing all the basic functions.
|
||||
@@ -130,7 +131,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||
|
||||
internal void OnClick()
|
||||
{
|
||||
Listeners?.Invoke();
|
||||
Listeners?.Invoke(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user