mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
parent
b9d0a8a9f6
commit
82de7385d1
@ -26,8 +26,6 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
AddSliderStep("start time", 500, 600, 0, x =>
|
AddSliderStep("start time", 500, 600, 0, x =>
|
||||||
{
|
{
|
||||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = x;
|
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = x;
|
||||||
drawableFruit.RefreshStateTransforms();
|
|
||||||
drawableBanana.RefreshStateTransforms();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,8 +44,6 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
AddStep("Initialize start time", () =>
|
AddStep("Initialize start time", () =>
|
||||||
{
|
{
|
||||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = initial_start_time;
|
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = initial_start_time;
|
||||||
drawableFruit.RefreshStateTransforms();
|
|
||||||
drawableBanana.RefreshStateTransforms();
|
|
||||||
|
|
||||||
fruitRotation = drawableFruit.DisplayRotation;
|
fruitRotation = drawableFruit.DisplayRotation;
|
||||||
bananaRotation = drawableBanana.DisplayRotation;
|
bananaRotation = drawableBanana.DisplayRotation;
|
||||||
@ -58,8 +54,6 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
AddStep("change start time", () =>
|
AddStep("change start time", () =>
|
||||||
{
|
{
|
||||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = another_start_time;
|
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = another_start_time;
|
||||||
drawableFruit.RefreshStateTransforms();
|
|
||||||
drawableBanana.RefreshStateTransforms();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
AddAssert("fruit rotation is changed", () => drawableFruit.DisplayRotation != fruitRotation);
|
AddAssert("fruit rotation is changed", () => drawableFruit.DisplayRotation != fruitRotation);
|
||||||
@ -70,8 +64,6 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
AddStep("reset start time", () =>
|
AddStep("reset start time", () =>
|
||||||
{
|
{
|
||||||
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = initial_start_time;
|
drawableFruit.HitObject.StartTime = drawableBanana.HitObject.StartTime = initial_start_time;
|
||||||
drawableFruit.RefreshStateTransforms();
|
|
||||||
drawableBanana.RefreshStateTransforms();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
AddAssert("rotation and size restored", () =>
|
AddAssert("rotation and size restored", () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user