1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 12:32:58 +08:00

Fix mania playfield not working.

This commit is contained in:
smoogipooo 2017-08-22 14:04:14 +09:00
parent 88151eff3f
commit cd3c825bd2
2 changed files with 3 additions and 2 deletions

View File

@ -125,6 +125,7 @@ namespace osu.Game.Rulesets.Mania.UI
for (int i = 0; i < columnCount; i++) for (int i = 0; i < columnCount; i++)
{ {
var c = new Column(); var c = new Column();
c.Reversed.BindTo(Reversed);
c.VisibleTimeRange.BindTo(VisibleTimeRange); c.VisibleTimeRange.BindTo(VisibleTimeRange);
columns.Add(c); columns.Add(c);

View File

@ -74,6 +74,8 @@ namespace osu.Game.Rulesets.Mania.UI
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
Playfield.Reversed.Value = true;
BarLines.ForEach(Playfield.Add); BarLines.ForEach(Playfield.Add);
} }
@ -81,8 +83,6 @@ namespace osu.Game.Rulesets.Mania.UI
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
// Invert by default for now (should be moved to config/skin later)
Scale = new Vector2(1, -1)
}; };
public override ScoreProcessor CreateScoreProcessor() => new ManiaScoreProcessor(this); public override ScoreProcessor CreateScoreProcessor() => new ManiaScoreProcessor(this);