mirror of https://github.com/ppy/osu
Rename caret class
This commit is contained in:
parent
3865090fff
commit
93ff25d2a4
|
@ -65,19 +65,19 @@ protected override void OnFocusLost(FocusLostEvent e)
|
|||
|
||||
protected override Drawable GetDrawableCharacter(char c) => new OsuSpriteText { Text = c.ToString(), Font = OsuFont.GetFont(size: CalculatedTextSize) };
|
||||
|
||||
protected override Caret CreateCaret() => new BeatCaret
|
||||
protected override Caret CreateCaret() => new OsuCaret
|
||||
{
|
||||
CaretWidth = CaretWidth,
|
||||
SelectionColour = SelectionColour,
|
||||
};
|
||||
|
||||
private class BeatCaret : Caret
|
||||
private class OsuCaret : Caret
|
||||
{
|
||||
private const float caret_move_time = 60;
|
||||
|
||||
private readonly CaretBeatSyncedContainer beatSync;
|
||||
|
||||
public BeatCaret()
|
||||
public OsuCaret()
|
||||
{
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
Size = new Vector2(1, 0.9f);
|
||||
|
|
Loading…
Reference in New Issue