RAGECOOP-V/RageCoop.Client/LemonUI/Menus/SelectedEventArgs.cs
2022-06-27 13:02:31 +08:00

29 lines
868 B
C#

namespace LemonUI.Menus
{
/// <summary>
/// Represents the selection of an item in the screen.
/// </summary>
public class SelectedEventArgs
{
/// <summary>
/// The index of the item in the full list of items.
/// </summary>
public int Index { get; }
/// <summary>
/// The index of the item in the screen.
/// </summary>
public int OnScreen { get; }
/// <summary>
/// Creates a new <see cref="SelectedEventArgs"/>.
/// </summary>
/// <param name="index">The index of the item in the menu.</param>
/// <param name="screen">The index of the item based on the number of items shown on screen,</param>
public SelectedEventArgs(int index, int screen)
{
Index = index;
OnScreen = screen;
}
}
}