mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Update with generic labelledcomponent
This commit is contained in:
@ -9,12 +9,10 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup.Components.LabelledComponents
|
||||
{
|
||||
public class LabelledTextBox : LabelledComponent
|
||||
public class LabelledTextBox : LabelledComponent<OsuTextBox>
|
||||
{
|
||||
public event TextBox.OnCommitHandler OnCommit;
|
||||
|
||||
protected new OsuTextBox Component => (OsuTextBox)base.Component;
|
||||
|
||||
public LabelledTextBox()
|
||||
: base(false)
|
||||
{
|
||||
@ -41,7 +39,7 @@ namespace osu.Game.Screens.Edit.Setup.Components.LabelledComponents
|
||||
Component.BorderColour = colours.Blue;
|
||||
}
|
||||
|
||||
protected override Drawable CreateComponent() => new OsuTextBox
|
||||
protected override OsuTextBox CreateComponent() => new OsuTextBox
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
|
Reference in New Issue
Block a user