mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Use Color4Extensions from Framework and remove redundant Name
This commit is contained in:
@ -19,7 +19,6 @@ namespace osu.Game.Screens.Play
|
||||
private Container textLayer;
|
||||
private SpriteText countSpriteText;
|
||||
|
||||
public override string Name { get; }
|
||||
public bool IsCounting { get; set; }
|
||||
private int count;
|
||||
public int Count
|
||||
|
@ -9,7 +9,7 @@ namespace osu.Game.Screens.Play
|
||||
public class KeyCounterKeyboard : KeyCounter
|
||||
{
|
||||
public Key Key { get; }
|
||||
public KeyCounterKeyboard(string name, Key key) : base(name)
|
||||
public KeyCounterKeyboard(Key key) : base(key.ToString())
|
||||
{
|
||||
Key = key;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ namespace osu.Game.Screens.Play
|
||||
public class KeyCounterMouse : KeyCounter
|
||||
{
|
||||
public MouseButton Button { get; }
|
||||
public KeyCounterMouse(string name, MouseButton button) : base(name)
|
||||
public KeyCounterMouse(MouseButton button) : base(button.ToString())
|
||||
{
|
||||
Button = button;
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
|
Reference in New Issue
Block a user