Define explicit method to add background

Also cleans up some redundant/misplaced comments.
This commit is contained in:
Dean Herbert
2019-03-20 20:12:46 +09:00
parent 8865d53992
commit ba89bfee0c
3 changed files with 19 additions and 12 deletions

View File

@ -164,7 +164,7 @@ namespace osu.Game.Screens.Play
private ScheduledDelegate pushDebounce;
protected VisualSettings VisualSettings;
// required for IsHovered usage in readyForPush
// Hhere because IsHovered will not update unless we do so.
public override bool HandlePositionalInput => true;
private bool readyForPush => player.LoadState == LoadState.Ready && IsHovered && GetContainingInputManager()?.DraggedDrawable == null;