mirror of
https://github.com/osukey/osukey.git
synced 2025-05-02 04:07:22 +09:00
Fixed indentation
sorry about the style fixes... I'm using JetBrains Rider from now on.
This commit is contained in:
parent
6b6a71d3c3
commit
59d13b0dd3
@ -75,6 +75,7 @@ namespace osu.Android
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override UpdateManager CreateUpdateManager() => new SimpleUpdateManager();
|
protected override UpdateManager CreateUpdateManager() => new SimpleUpdateManager();
|
||||||
|
|
||||||
public class AndroidPowerStatus : PowerStatus
|
public class AndroidPowerStatus : PowerStatus
|
||||||
{
|
{
|
||||||
public override double ChargeLevel => Battery.ChargeLevel;
|
public override double ChargeLevel => Battery.ChargeLevel;
|
||||||
|
@ -302,21 +302,21 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
// set charge status and level
|
// set charge status and level
|
||||||
AddStep("load player", () => resetPlayer(false, () =>
|
AddStep("load player", () => resetPlayer(false, () =>
|
||||||
{
|
{
|
||||||
powerStatus.IsCharging = isCharging;
|
powerStatus.IsCharging = isCharging;
|
||||||
powerStatus.ChargeLevel = chargeLevel;
|
powerStatus.ChargeLevel = chargeLevel;
|
||||||
}));
|
}));
|
||||||
AddUntilStep("wait for player", () => player?.LoadState == LoadState.Ready);
|
AddUntilStep("wait for player", () => player?.LoadState == LoadState.Ready);
|
||||||
int notificationCount = !isCharging && chargeLevel <= powerStatus.BatteryCutoff ? 1 : 0;
|
int notificationCount = !isCharging && chargeLevel <= powerStatus.BatteryCutoff ? 1 : 0;
|
||||||
AddAssert("check for notification", () => notificationOverlay.UnreadCount.Value == notificationCount);
|
AddAssert("check for notification", () => notificationOverlay.UnreadCount.Value == notificationCount);
|
||||||
AddStep("click notification", () =>
|
AddStep("click notification", () =>
|
||||||
{
|
{
|
||||||
var scrollContainer = (OsuScrollContainer)notificationOverlay.Children.Last();
|
var scrollContainer = (OsuScrollContainer)notificationOverlay.Children.Last();
|
||||||
var flowContainer = scrollContainer.Children.OfType<FillFlowContainer<NotificationSection>>().First();
|
var flowContainer = scrollContainer.Children.OfType<FillFlowContainer<NotificationSection>>().First();
|
||||||
var notification = flowContainer.First();
|
var notification = flowContainer.First();
|
||||||
|
|
||||||
InputManager.MoveMouseTo(notification);
|
InputManager.MoveMouseTo(notification);
|
||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
AddUntilStep("wait for player load", () => player.IsLoaded);
|
AddUntilStep("wait for player load", () => player.IsLoaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,6 +268,7 @@ namespace osu.Game.Screens.Play
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user