mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Move settings and bindables to a sane location
This commit is contained in:
@ -14,6 +14,10 @@ namespace osu.Game.Screens.Utility.SampleComponents
|
||||
{
|
||||
public abstract class LatencySampleComponent : CompositeDrawable
|
||||
{
|
||||
protected readonly BindableDouble SampleBPM = new BindableDouble();
|
||||
protected readonly BindableDouble SampleApproachRate = new BindableDouble();
|
||||
protected readonly BindableFloat SampleVisualSpacing = new BindableFloat();
|
||||
|
||||
protected readonly BindableBool IsActive = new BindableBool();
|
||||
|
||||
private InputManager inputManager = null!;
|
||||
@ -24,6 +28,14 @@ namespace osu.Game.Screens.Utility.SampleComponents
|
||||
[Resolved]
|
||||
protected OverlayColourProvider OverlayColourProvider { get; private set; } = null!;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LatencyCertifierScreen latencyCertifierScreen)
|
||||
{
|
||||
SampleBPM.BindTo(latencyCertifierScreen.SampleBPM);
|
||||
SampleApproachRate.BindTo(latencyCertifierScreen.SampleApproachRate);
|
||||
SampleVisualSpacing.BindTo(latencyCertifierScreen.SampleVisualSpacing);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
Reference in New Issue
Block a user