fixed naming

This commit is contained in:
nanashi-1
2022-11-16 09:42:40 +08:00
parent 7aec5ca1e8
commit 9101ad0cbd
3 changed files with 12 additions and 12 deletions

View File

@ -34,12 +34,12 @@ namespace osu.Game.Screens.Select
private PlayBeatmapDetailArea playBeatmapDetailArea = null!;
protected BeatmapOptionsButton? editOptionButton;
protected BeatmapOptionsButton? EditOptionButton;
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
editOptionButton = BeatmapOptions.AddButton(@"Edit", @"beatmap", FontAwesome.Solid.PencilAlt, colours.Yellow, () => Edit());
EditOptionButton = BeatmapOptions.AddButton(@"Edit", @"beatmap", FontAwesome.Solid.PencilAlt, colours.Yellow, () => Edit());
}
protected void PresentScore(ScoreInfo score) =>
@ -150,7 +150,7 @@ namespace osu.Game.Screens.Select
{
base.OnBeatmapOptionsButtonDisabledChanged(disabled);
if (editOptionButton != null) editOptionButton.Disabled = disabled;
if (EditOptionButton != null) EditOptionButton.Disabled = disabled;
}
}
}