mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 11:27:24 +08:00
d3957e6155
Using an abstract property was awkward for this as it is being consumed in the underlying constructor but could not be dynamically set in time from a derived class.
30 lines
911 B
C#
30 lines
911 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Configuration;
|
|
|
|
namespace osu.Game.Screens.Play.PlayerSettings
|
|
{
|
|
public class InputSettings : PlayerSettingsGroup
|
|
{
|
|
private readonly PlayerCheckbox mouseButtonsCheckbox;
|
|
|
|
public InputSettings()
|
|
: base("Input Settings")
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
mouseButtonsCheckbox = new PlayerCheckbox
|
|
{
|
|
LabelText = "Disable mouse buttons"
|
|
}
|
|
};
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config) => mouseButtonsCheckbox.Current = config.GetBindable<bool>(OsuSetting.MouseDisableButtons);
|
|
}
|
|
}
|