mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Merge branch 'master' into popup-filter-effect
This commit is contained in:
@ -10,12 +10,12 @@ namespace osu.Game.Screens.Edit.Components.Menus
|
||||
{
|
||||
public class DifficultyMenuItem : StatefulMenuItem<bool>
|
||||
{
|
||||
public BeatmapInfo Beatmap { get; }
|
||||
public BeatmapInfo BeatmapInfo { get; }
|
||||
|
||||
public DifficultyMenuItem(BeatmapInfo beatmapInfo, bool selected, Action<BeatmapInfo> difficultyChangeFunc)
|
||||
: base(beatmapInfo.Version ?? "(unnamed)", null)
|
||||
{
|
||||
Beatmap = beatmapInfo;
|
||||
BeatmapInfo = beatmapInfo;
|
||||
State.Value = selected;
|
||||
|
||||
if (!selected)
|
||||
|
@ -89,6 +89,13 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
public Action OnFocused;
|
||||
|
||||
protected override bool OnDragStart(DragStartEvent e)
|
||||
{
|
||||
// This text box is intended to be "read only" without actually specifying that.
|
||||
// As such we don't want to allow the user to select its content with a drag.
|
||||
return false;
|
||||
}
|
||||
|
||||
protected override void OnFocus(FocusEvent e)
|
||||
{
|
||||
OnFocused?.Invoke();
|
||||
|
Reference in New Issue
Block a user