2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-09-20 17:35:15 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2019-10-28 14:33:08 +08:00
|
|
|
|
using osu.Framework.Bindables;
|
2019-09-20 17:35:15 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
2019-10-28 14:33:08 +08:00
|
|
|
|
using osu.Framework.Graphics.UserInterface;
|
2019-09-20 17:35:15 +08:00
|
|
|
|
|
2019-09-24 18:00:26 +08:00
|
|
|
|
namespace osu.Game.Graphics.UserInterfaceV2
|
2019-09-20 17:35:15 +08:00
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public abstract partial class LabelledComponent<TDrawable, TValue> : LabelledDrawable<TDrawable>, IHasCurrentValue<TValue>
|
2019-12-10 21:04:26 +08:00
|
|
|
|
where TDrawable : Drawable, IHasCurrentValue<TValue>
|
2019-09-20 17:35:15 +08:00
|
|
|
|
{
|
|
|
|
|
protected LabelledComponent(bool padded)
|
2019-10-28 14:33:08 +08:00
|
|
|
|
: base(padded)
|
2019-09-20 17:35:15 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-10 21:04:26 +08:00
|
|
|
|
public Bindable<TValue> Current
|
2019-09-20 17:35:15 +08:00
|
|
|
|
{
|
2019-10-28 14:33:08 +08:00
|
|
|
|
get => Component.Current;
|
|
|
|
|
set => Component.Current = value;
|
2019-09-20 17:35:15 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|