mirror of
https://github.com/ppy/osu.git
synced 2026-05-20 00:20:21 +08:00
Fix osu!mania editor not zooming playfield to match timeline (#37176)
- Fixes CI failures due to completely wrong test (sorry) - Fixes #37167 (oops)
This commit is contained in:
committed by
GitHub
Unverified
parent
c4f2c66fd6
commit
e207a42889
@@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Mania.Edit
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
TimeRange.Value = TimelineTimeRange == null || ShowSpeedChanges.Value ? ComputeScrollTime(Config.Get<double>(ManiaRulesetSetting.ScrollSpeed)) : TimelineTimeRange.Value;
|
||||
TargetTimeRange = TimelineTimeRange == null || ShowSpeedChanges.Value ? ComputeScrollTime(Config.Get<double>(ManiaRulesetSetting.ScrollSpeed)) : TimelineTimeRange.Value;
|
||||
base.Update();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -472,7 +472,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
void checkScrollSpeed(double configValue, double gameplayValue)
|
||||
{
|
||||
AddUntilStep($"config value is {configValue}", () => getConfigManager().Get<double>(ManiaRulesetSetting.ScrollSpeed), () => Is.EqualTo(configValue));
|
||||
AddUntilStep($"gameplay value is {gameplayValue}", () => this.ChildrenOfType<DrawableManiaRuleset>().Single().ScrollingInfo.TimeRange.Value,
|
||||
AddUntilStep($"gameplay value is {gameplayValue}", () => this.ChildrenOfType<DrawableManiaRuleset>().Single().TargetTimeRange,
|
||||
() => Is.EqualTo(DrawableManiaRuleset.ComputeScrollTime(gameplayValue)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user