mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Added a comment and fixed some wonky formatting
This commit is contained in:
parent
e3d14db285
commit
b694e0d441
@ -22,7 +22,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Rulesets.Taiko.UI
|
||||
{
|
||||
using TaikoInput = TaikoAction;
|
||||
using TaikoInput = TaikoAction; // Functionally identical to TaikoAction, it's just a readability thing
|
||||
/// <summary>
|
||||
/// An overlay that captures and displays osu!taiko mouse and touch input.
|
||||
/// </summary>
|
||||
@ -158,7 +158,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
private bool validMouse(MouseButtonEvent e) =>
|
||||
leftRim.Contains(e.ScreenSpaceMouseDownPosition) || rightRim.Contains(e.ScreenSpaceMouseDownPosition);
|
||||
|
||||
#pragma warning disable format
|
||||
#pragma warning disable format
|
||||
private TaikoAction getTaikoActionFromInput(TaikoInput input)
|
||||
{
|
||||
switch (configTouchControlScheme.Value)
|
||||
@ -196,8 +196,8 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
}
|
||||
return TaikoAction.LeftCentre;
|
||||
}
|
||||
#pragma warning restore format
|
||||
|
||||
#pragma warning restore format
|
||||
private TaikoAction getTaikoActionFromPosition(Vector2 inputPosition)
|
||||
{
|
||||
bool centreHit = leftCentre.Contains(inputPosition) || rightCentre.Contains(inputPosition);
|
||||
@ -236,7 +236,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
{
|
||||
Color4 colour = ((Func<Color4>)(() =>
|
||||
{
|
||||
#pragma warning disable format
|
||||
#pragma warning disable format
|
||||
switch (handledAction)
|
||||
{
|
||||
case TaikoAction.LeftRim: return colours.Blue;
|
||||
@ -244,7 +244,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
case TaikoAction.RightCentre: return colours.Red;
|
||||
case TaikoAction.RightRim: return colours.Blue;
|
||||
}
|
||||
#pragma warning restore format
|
||||
#pragma warning restore format
|
||||
return colours.Red;
|
||||
}))();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user