mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Apply changes to UI components overriding functions with changing signatures
This commit is contained in:
@ -2,20 +2,22 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Settings
|
||||
{
|
||||
public class SettingsCheckbox : SettingsItem<bool>
|
||||
{
|
||||
private string labelText;
|
||||
private LocalisableString labelText;
|
||||
|
||||
protected override Drawable CreateControl() => new OsuCheckbox();
|
||||
|
||||
public override string LabelText
|
||||
public override LocalisableString LabelText
|
||||
{
|
||||
get => labelText;
|
||||
set => ((OsuCheckbox)Control).LabelText = labelText = value;
|
||||
// checkbox doesn't properly support localisation yet.
|
||||
set => ((OsuCheckbox)Control).LabelText = (labelText = value).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user