mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:53:01 +08:00
Fix file layout order
This commit is contained in:
parent
0b6cfec21c
commit
7fa419a38b
@ -25,24 +25,6 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private Bindable<BeatmapDetailTab> selectedTab;
|
private Bindable<BeatmapDetailTab> selectedTab;
|
||||||
|
|
||||||
private void invokeOnFilter()
|
|
||||||
{
|
|
||||||
OnFilter?.Invoke(tabs.Current.Value, modsCheckbox.Current.Value);
|
|
||||||
|
|
||||||
modsCheckbox.FadeTo(tabs.Current.Value == BeatmapDetailTab.Details ? 0 : 1, 200, Easing.OutQuint);
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
|
||||||
private void load(OsuColour colour, OsuConfigManager config)
|
|
||||||
{
|
|
||||||
modsCheckbox.AccentColour = tabs.AccentColour = colour.YellowLight;
|
|
||||||
|
|
||||||
selectedTab = config.GetBindable<BeatmapDetailTab>(OsuSetting.BeatmapDetailTab);
|
|
||||||
|
|
||||||
tabs.Current.BindTo(selectedTab);
|
|
||||||
tabs.Current.TriggerChange();
|
|
||||||
}
|
|
||||||
|
|
||||||
public BeatmapDetailAreaTabControl()
|
public BeatmapDetailAreaTabControl()
|
||||||
{
|
{
|
||||||
Height = HEIGHT;
|
Height = HEIGHT;
|
||||||
@ -74,6 +56,24 @@ namespace osu.Game.Screens.Select
|
|||||||
tabs.Current.ValueChanged += _ => invokeOnFilter();
|
tabs.Current.ValueChanged += _ => invokeOnFilter();
|
||||||
modsCheckbox.Current.ValueChanged += _ => invokeOnFilter();
|
modsCheckbox.Current.ValueChanged += _ => invokeOnFilter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[BackgroundDependencyLoader]
|
||||||
|
private void load(OsuColour colour, OsuConfigManager config)
|
||||||
|
{
|
||||||
|
modsCheckbox.AccentColour = tabs.AccentColour = colour.YellowLight;
|
||||||
|
|
||||||
|
selectedTab = config.GetBindable<BeatmapDetailTab>(OsuSetting.BeatmapDetailTab);
|
||||||
|
|
||||||
|
tabs.Current.BindTo(selectedTab);
|
||||||
|
tabs.Current.TriggerChange();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void invokeOnFilter()
|
||||||
|
{
|
||||||
|
OnFilter?.Invoke(tabs.Current.Value, modsCheckbox.Current.Value);
|
||||||
|
|
||||||
|
modsCheckbox.FadeTo(tabs.Current.Value == BeatmapDetailTab.Details ? 0 : 1, 200, Easing.OutQuint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum BeatmapDetailTab
|
public enum BeatmapDetailTab
|
||||||
|
Loading…
Reference in New Issue
Block a user