1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 08:42:56 +08:00

fix readybutton and favouritebutton

This commit is contained in:
OliBomby 2024-10-05 21:46:00 +02:00
parent cc29e8c16d
commit ae8abc7f35
2 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,7 @@ using System.Diagnostics;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
@ -20,7 +21,7 @@ using APIUser = osu.Game.Online.API.Requests.Responses.APIUser;
namespace osu.Game.Overlays.BeatmapSet.Buttons
{
public partial class FavouriteButton : HeaderButton
public partial class FavouriteButton : HeaderButton, IHasTooltip
{
public readonly Bindable<APIBeatmapSet> BeatmapSet = new Bindable<APIBeatmapSet>();
@ -31,7 +32,7 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
private readonly IBindable<APIUser> localUser = new Bindable<APIUser>();
public override LocalisableString TooltipText
public LocalisableString TooltipText
{
get
{

View File

@ -3,6 +3,7 @@
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterfaceV2;
using osu.Game.Online;
@ -10,7 +11,7 @@ using osu.Game.Online.Rooms;
namespace osu.Game.Screens.OnlinePlay.Components
{
public abstract partial class ReadyButton : RoundedButton
public abstract partial class ReadyButton : RoundedButton, IHasTooltip
{
public new readonly BindableBool Enabled = new BindableBool();
@ -28,7 +29,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
private void updateState() =>
base.Enabled.Value = availability.Value.State == DownloadState.LocallyAvailable && Enabled.Value;
public override LocalisableString TooltipText
public LocalisableString TooltipText
{
get
{