mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 18:37:52 +08:00
fix tooltip in SettingsButton
This commit is contained in:
parent
75f15ccaba
commit
0a7d2395d2
@ -6,12 +6,13 @@ using System.Collections.Generic;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Graphics.Cursor;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
using osu.Game.Graphics.UserInterfaceV2;
|
using osu.Game.Graphics.UserInterfaceV2;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Settings
|
namespace osu.Game.Overlays.Settings
|
||||||
{
|
{
|
||||||
public partial class SettingsButton : RoundedButton, IConditionalFilterable
|
public partial class SettingsButton : RoundedButton, IHasTooltip, IConditionalFilterable
|
||||||
{
|
{
|
||||||
public SettingsButton()
|
public SettingsButton()
|
||||||
{
|
{
|
||||||
@ -24,7 +25,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
public BindableBool CanBeShown { get; } = new BindableBool(true);
|
public BindableBool CanBeShown { get; } = new BindableBool(true);
|
||||||
IBindable<bool> IConditionalFilterable.CanBeShown => CanBeShown;
|
IBindable<bool> IConditionalFilterable.CanBeShown => CanBeShown;
|
||||||
|
|
||||||
public virtual LocalisableString TooltipText { get; set; }
|
public LocalisableString TooltipText { get; set; }
|
||||||
|
|
||||||
public override IEnumerable<LocalisableString> FilterTerms
|
public override IEnumerable<LocalisableString> FilterTerms
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user