1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 14:47:23 +08:00
osu-lazer/osu.Game/Overlays/Options/OptionTextBox.cs

24 lines
645 B
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-02-07 12:52:19 +08:00
using osu.Framework.Configuration;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Options
{
public class OptionTextBox : OsuTextBox
{
private Bindable<string> bindable;
public Bindable<string> Bindable
{
set
{
bindable = value;
Current = bindable;
2017-04-10 15:22:36 +08:00
if (value?.Disabled ?? true)
Alpha = 0.3f;
2017-02-07 12:52:19 +08:00
}
}
}
2016-11-11 07:15:30 +08:00
}