mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 18:12:56 +08:00
Fix select beatmap button not highlighting when creating a multiplayer room using keyboard
This commit is contained in:
parent
6924dc5c50
commit
3e0bbb2432
@ -73,11 +73,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
private OsuSpriteText typeLabel = null!;
|
private OsuSpriteText typeLabel = null!;
|
||||||
private LoadingLayer loadingLayer = null!;
|
private LoadingLayer loadingLayer = null!;
|
||||||
|
|
||||||
public void SelectBeatmap()
|
public void SelectBeatmap() => selectBeatmapButton.TriggerClick();
|
||||||
{
|
|
||||||
if (matchSubScreen.IsCurrentScreen())
|
|
||||||
matchSubScreen.Push(new MultiplayerMatchSongSelect(matchSubScreen.Room));
|
|
||||||
}
|
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private MultiplayerMatchSubScreen matchSubScreen { get; set; } = null!;
|
private MultiplayerMatchSubScreen matchSubScreen { get; set; } = null!;
|
||||||
@ -97,6 +93,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
private IDisposable? applyingSettingsOperation;
|
private IDisposable? applyingSettingsOperation;
|
||||||
private Drawable playlistContainer = null!;
|
private Drawable playlistContainer = null!;
|
||||||
private DrawableRoomPlaylist drawablePlaylist = null!;
|
private DrawableRoomPlaylist drawablePlaylist = null!;
|
||||||
|
private RoundedButton selectBeatmapButton = null!;
|
||||||
|
|
||||||
public MatchSettings(Room room)
|
public MatchSettings(Room room)
|
||||||
{
|
{
|
||||||
@ -275,12 +272,16 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = DrawableRoomPlaylistItem.HEIGHT
|
Height = DrawableRoomPlaylistItem.HEIGHT
|
||||||
},
|
},
|
||||||
new RoundedButton
|
selectBeatmapButton = new RoundedButton
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = 40,
|
Height = 40,
|
||||||
Text = "Select beatmap",
|
Text = "Select beatmap",
|
||||||
Action = SelectBeatmap
|
Action = () =>
|
||||||
|
{
|
||||||
|
if (matchSubScreen.IsCurrentScreen())
|
||||||
|
matchSubScreen.Push(new MultiplayerMatchSongSelect(matchSubScreen.Room));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user