mirror of
https://github.com/ppy/osu.git
synced 2024-12-26 17:13:07 +08:00
08040adfad
Adds a `LabelledDrawable` class for usages where bindables are not present.
16 lines
453 B
C#
16 lines
453 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.
|
|
|
|
namespace osu.Game.Graphics.UserInterfaceV2
|
|
{
|
|
public class LabelledSwitchButton : LabelledComponent<SwitchButton, bool>
|
|
{
|
|
public LabelledSwitchButton()
|
|
: base(true)
|
|
{
|
|
}
|
|
|
|
protected override SwitchButton CreateComponent() => new SwitchButton();
|
|
}
|
|
}
|