mirror of https://github.com/ppy/osu
Add tooltip to rounded button
This commit is contained in:
parent
1c6e42671a
commit
3e4cd0aeac
|
@ -155,6 +155,10 @@ private void load()
|
|||
Action = () => GridFromPointsClicked?.Invoke(),
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Text = "Grid from points",
|
||||
TooltipText = """
|
||||
Left click to set the origin.
|
||||
Click and drag to set the origin, rotation and spacing.
|
||||
"""
|
||||
},
|
||||
gridTypeButtons = new EditorRadioButtonCollection
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Cursor;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Game.Graphics.Backgrounds;
|
||||
|
@ -17,7 +18,7 @@
|
|||
|
||||
namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
public partial class RoundedButton : OsuButton, IFilterable
|
||||
public partial class RoundedButton : OsuButton, IFilterable, IHasTooltip
|
||||
{
|
||||
protected TrianglesV2? Triangles { get; private set; }
|
||||
|
||||
|
@ -107,5 +108,6 @@ public bool MatchingFilter
|
|||
}
|
||||
|
||||
public bool FilteringActive { get; set; }
|
||||
public LocalisableString TooltipText { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue