mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
change scoresType to be a bindable
This commit is contained in:
parent
dea2a6ed8d
commit
fa00fc5c6d
@ -44,7 +44,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
this.trackingUser = trackingUser;
|
this.trackingUser = trackingUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
private PlayBeatmapDetailArea.TabType scoresType;
|
private Bindable<PlayBeatmapDetailArea.TabType> scoresType = new Bindable<PlayBeatmapDetailArea.TabType>();
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config)
|
private void load(OsuConfigManager config)
|
||||||
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
config.BindWith(OsuSetting.GameplayLeaderboard, configVisibility);
|
config.BindWith(OsuSetting.GameplayLeaderboard, configVisibility);
|
||||||
|
|
||||||
// a way to differentiate scores taken from online ranking to local scores
|
// a way to differentiate scores taken from online ranking to local scores
|
||||||
scoresType = config.Get<PlayBeatmapDetailArea.TabType>(OsuSetting.BeatmapDetailTab);
|
scoresType = config.GetBindable<PlayBeatmapDetailArea.TabType>(OsuSetting.BeatmapDetailTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
@ -104,7 +104,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
{
|
{
|
||||||
base.sort();
|
base.sort();
|
||||||
|
|
||||||
if (scoresType != PlayBeatmapDetailArea.TabType.Local)
|
if (scoresType.Value != PlayBeatmapDetailArea.TabType.Local)
|
||||||
{
|
{
|
||||||
// change displayed potision to '-' when there are 50 already submitted scores and tracked score is last
|
// change displayed potision to '-' when there are 50 already submitted scores and tracked score is last
|
||||||
if (TrackedScore?.ScorePosition == Flow.Count && Flow.Count > max_online_scores)
|
if (TrackedScore?.ScorePosition == Flow.Count && Flow.Count > max_online_scores)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user