Use the framework's new AlwaysPresent switch instead of setting the alpha to 0.01.

This commit is contained in:
Thomas Müller
2017-02-05 09:40:58 +01:00
parent aae5f4f9e2
commit 8271b139e9
5 changed files with 11 additions and 7 deletions

View File

@ -115,8 +115,9 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
base.UpdateInitialState();
body.Alpha = 1;
//we need to be visible to handle input events. note that we still don't get enough events (we don't get a position if the mouse hasn't moved since the slider appeared).
ball.Alpha = 0.01f;
//we need to be present to handle input events. note that we still don't get enough events (we don't get a position if the mouse hasn't moved since the slider appeared).
ball.AlwaysPresent = true;
ball.Alpha = 0;
}
protected override void UpdateState(ArmedState state)