mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
XML for TooltipIconButton.cs
This commit is contained in:
@ -23,9 +23,16 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
private SampleChannel sampleHover;
|
private SampleChannel sampleHover;
|
||||||
private SampleChannel sampleClick;
|
private SampleChannel sampleClick;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The action to fire upon click, if <see cref="IsEnabled"/> is set to true.
|
||||||
|
/// </summary>
|
||||||
public Action Action;
|
public Action Action;
|
||||||
|
|
||||||
private bool isEnabled;
|
private bool isEnabled;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// If set to true, upon click the <see cref="Action"/> will execute. It wont otherwise.
|
||||||
|
/// </summary>
|
||||||
public bool IsEnabled
|
public bool IsEnabled
|
||||||
{
|
{
|
||||||
get { return isEnabled; }
|
get { return isEnabled; }
|
||||||
@ -42,6 +49,9 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
set { icon.Icon = value; }
|
set { icon.Icon = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A simple icon that has an action upon click and can be disabled.
|
||||||
|
/// </summary>
|
||||||
public TooltipIconButton()
|
public TooltipIconButton()
|
||||||
{
|
{
|
||||||
isEnabled = true;
|
isEnabled = true;
|
||||||
|
Reference in New Issue
Block a user