mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 22:02:56 +08:00
Remove null-stage fallback
This commit is contained in:
parent
9d9780707d
commit
bb5fa472dc
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
@ -27,23 +26,20 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
if (Stage == null)
|
switch (Column.ColumnType)
|
||||||
FallbackColumnIndex = (Column.Index % 2 + 1).ToString();
|
{
|
||||||
else
|
case ColumnType.Special:
|
||||||
switch (Column.ColumnType)
|
FallbackColumnIndex = "S";
|
||||||
{
|
break;
|
||||||
case ColumnType.Special:
|
|
||||||
FallbackColumnIndex = "S";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ColumnType.Odd:
|
case ColumnType.Odd:
|
||||||
FallbackColumnIndex = "1";
|
FallbackColumnIndex = "1";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ColumnType.Even:
|
case ColumnType.Even:
|
||||||
FallbackColumnIndex = "2";
|
FallbackColumnIndex = "2";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override IBindable<T> GetManiaSkinConfig<T>(ISkin skin, LegacyManiaSkinConfigurationLookups lookup, int? index = null)
|
protected override IBindable<T> GetManiaSkinConfig<T>(ISkin skin, LegacyManiaSkinConfigurationLookups lookup, int? index = null)
|
||||||
|
Loading…
Reference in New Issue
Block a user