mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Apply suggestions from code review
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
@ -173,7 +173,7 @@ namespace osu.Game.Rulesets.Mania.Tests
|
|||||||
|
|
||||||
AddStep("grab hold note", () =>
|
AddStep("grab hold note", () =>
|
||||||
{
|
{
|
||||||
holdNote = this.ChildrenOfType<DrawableHoldNote>().FirstOrDefault();
|
holdNote = this.ChildrenOfType<DrawableHoldNote>().Single();
|
||||||
InputManager.MoveMouseTo(holdNote);
|
InputManager.MoveMouseTo(holdNote);
|
||||||
InputManager.PressButton(MouseButton.Left);
|
InputManager.PressButton(MouseButton.Left);
|
||||||
});
|
});
|
||||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private IScrollingInfo scrollingInfo { get; set; }
|
private IScrollingInfo scrollingInfo { get; set; }
|
||||||
|
|
||||||
// Responds to changes in the layout. When the layout is changes, all hit object states must be recomputed.
|
// Responds to changes in the layout. When the layout changes, all hit object states must be recomputed.
|
||||||
private readonly LayoutValue layoutCache = new LayoutValue(Invalidation.RequiredParentSizeToFit | Invalidation.DrawInfo);
|
private readonly LayoutValue layoutCache = new LayoutValue(Invalidation.RequiredParentSizeToFit | Invalidation.DrawInfo);
|
||||||
|
|
||||||
// A combined cache across all hit object states to reduce per-update iterations.
|
// A combined cache across all hit object states to reduce per-update iterations.
|
||||||
|
Reference in New Issue
Block a user