Fix typo and missnaming.

This commit is contained in:
Huo Yaoyuan
2016-09-24 14:28:59 +08:00
parent ec2bc4720d
commit 63535df6dc
4 changed files with 6 additions and 6 deletions

View File

@ -23,8 +23,8 @@ namespace osu.Desktop.Tests
IsCounting = true IsCounting = true
}; };
Add(kc); Add(kc);
kc.AddKey(new KeyCounterKeyBoard(@"Z", Key.Z)); kc.AddKey(new KeyCounterKeyboard(@"Z", Key.Z));
kc.AddKey(new KeyCounterKeyBoard(@"X", Key.X)); kc.AddKey(new KeyCounterKeyboard(@"X", Key.X));
kc.AddKey(new KeyCounterMouse(@"M1", MouseButton.Left)); kc.AddKey(new KeyCounterMouse(@"M1", MouseButton.Left));
kc.AddKey(new KeyCounterMouse(@"M2", MouseButton.Right)); kc.AddKey(new KeyCounterMouse(@"M2", MouseButton.Right));
} }

View File

@ -91,7 +91,7 @@ namespace osu.Game.Graphics.UserInterface
} }
}; };
//Set this manually because an element with Alpha=0 won't take it size to AutoSizeContainer, //Set this manually because an element with Alpha=0 won't take it size to AutoSizeContainer,
//so the size can be changing between buttonSpirit and glowSpirit. //so the size can be changing between buttonSprite and glowSprite.
Height = buttonSprite.Height; Height = buttonSprite.Height;
Width = buttonSprite.Width; Width = buttonSprite.Width;
} }

View File

@ -7,10 +7,10 @@ using osu.Framework.Input;
namespace osu.Game.Graphics.UserInterface namespace osu.Game.Graphics.UserInterface
{ {
public class KeyCounterKeyBoard : KeyCounter public class KeyCounterKeyboard : KeyCounter
{ {
public Key Key { get; } public Key Key { get; }
public KeyCounterKeyBoard(string name, Key key) : base(name) public KeyCounterKeyboard(string name, Key key) : base(name)
{ {
Key = key; Key = key;
} }

View File

@ -54,7 +54,7 @@
<Compile Include="Graphics\Processing\RatioAdjust.cs" /> <Compile Include="Graphics\Processing\RatioAdjust.cs" />
<Compile Include="Graphics\TextAwesome.cs" /> <Compile Include="Graphics\TextAwesome.cs" />
<Compile Include="Graphics\UserInterface\KeyCounter.cs" /> <Compile Include="Graphics\UserInterface\KeyCounter.cs" />
<Compile Include="Graphics\UserInterface\KeyCounterKeyBoard.cs" /> <Compile Include="Graphics\UserInterface\KeyCounterKeyboard.cs" />
<Compile Include="Graphics\UserInterface\KeyCounterCollection.cs" /> <Compile Include="Graphics\UserInterface\KeyCounterCollection.cs" />
<Compile Include="Graphics\UserInterface\KeyCounterMouse.cs" /> <Compile Include="Graphics\UserInterface\KeyCounterMouse.cs" />
<Compile Include="Online\API\APIAccess.cs" /> <Compile Include="Online\API\APIAccess.cs" />