mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Merge branch 'master' into fix-downloads-during-import
This commit is contained in:
commit
152475858b
@ -1 +1 @@
|
||||
Subproject commit 8f36ddab946ff538620081ede7719461d4732b79
|
||||
Subproject commit 26c01ca6069296621f76d8ffbfe31ecf8074c687
|
@ -60,7 +60,10 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
Samples = s.Samples,
|
||||
SampleControlPoint = s.SampleControlPoint,
|
||||
TimePreempt = s.TimePreempt,
|
||||
TimeFadein = s.TimeFadein
|
||||
TimeFadein = s.TimeFadein,
|
||||
HitWindow300 = s.HitWindow300,
|
||||
HitWindow100 = s.HitWindow100,
|
||||
HitWindow50 = s.HitWindow50
|
||||
})
|
||||
};
|
||||
|
||||
|
@ -16,9 +16,9 @@ namespace osu.Game.Rulesets.Osu.Objects
|
||||
public const double OBJECT_RADIUS = 64;
|
||||
|
||||
private const double hittable_range = 300;
|
||||
private const double hit_window_50 = 150;
|
||||
private const double hit_window_100 = 80;
|
||||
private const double hit_window_300 = 30;
|
||||
public double HitWindow50 = 150;
|
||||
public double HitWindow100 = 80;
|
||||
public double HitWindow300 = 30;
|
||||
|
||||
public float TimePreempt = 600;
|
||||
public float TimeFadein = 400;
|
||||
@ -50,13 +50,13 @@ namespace osu.Game.Rulesets.Osu.Objects
|
||||
switch (result)
|
||||
{
|
||||
default:
|
||||
return 300;
|
||||
return hittable_range;
|
||||
case HitResult.Meh:
|
||||
return 150;
|
||||
return HitWindow50;
|
||||
case HitResult.Good:
|
||||
return 80;
|
||||
return HitWindow100;
|
||||
case HitResult.Great:
|
||||
return 30;
|
||||
return HitWindow300;
|
||||
}
|
||||
}
|
||||
|
||||
@ -78,6 +78,10 @@ namespace osu.Game.Rulesets.Osu.Objects
|
||||
TimePreempt = (float)BeatmapDifficulty.DifficultyRange(difficulty.ApproachRate, 1800, 1200, 450);
|
||||
TimeFadein = (float)BeatmapDifficulty.DifficultyRange(difficulty.ApproachRate, 1200, 800, 300);
|
||||
|
||||
HitWindow50 = BeatmapDifficulty.DifficultyRange(difficulty.OverallDifficulty, 200, 150, 100);
|
||||
HitWindow100 = BeatmapDifficulty.DifficultyRange(difficulty.OverallDifficulty, 140, 100, 60);
|
||||
HitWindow300 = BeatmapDifficulty.DifficultyRange(difficulty.OverallDifficulty, 80, 50, 20);
|
||||
|
||||
Scale = (1.0f - 0.7f * (difficulty.CircleSize - 5) / 5) / 2;
|
||||
}
|
||||
}
|
||||
|
@ -106,6 +106,8 @@ namespace osu.Game.Overlays.Direct
|
||||
beatmaps.BeatmapDownloadBegan += attachDownload;
|
||||
}
|
||||
|
||||
public override bool DisposeOnDeathRemoval => true;
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
|
@ -145,6 +145,12 @@ namespace osu.Game.Overlays.Direct
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
Playing.Value = false;
|
||||
}
|
||||
|
||||
private TrackLoader trackLoader;
|
||||
private AudioManager audio;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user