mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Add placeholder logic for filtering.
This commit is contained in:
parent
a1f341a64f
commit
2cfb83436d
@ -46,10 +46,16 @@ namespace osu.Game.Overlays.Music
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Search.Current.ValueChanged += current_ValueChanged;
|
||||
}
|
||||
|
||||
private void current_ValueChanged(string newValue) => FilterChanged?.Invoke(newValue);
|
||||
|
||||
public Action ExitRequested;
|
||||
|
||||
public Action<string> FilterChanged;
|
||||
|
||||
public class FilterTextBox : SearchTextBox
|
||||
{
|
||||
protected override Color4 BackgroundUnfocused => OsuColour.FromHex(@"222222");
|
||||
|
@ -74,18 +74,23 @@ namespace osu.Game.Overlays.Music
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
ExitRequested = () => State = Visibility.Hidden,
|
||||
FilterChanged = filterChanged,
|
||||
Padding = new MarginPadding(10),
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
list.BeatmapSets = BeatmapSets = beatmaps.GetAllWithChildren<BeatmapSetInfo>().ToList();
|
||||
|
||||
beatmapBacking.BindTo(game.Beatmap);
|
||||
}
|
||||
|
||||
private void filterChanged(string newValue)
|
||||
{
|
||||
// TODO: implement
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
Loading…
Reference in New Issue
Block a user