mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:23:00 +08:00
Merge branch 'master' into argon-mania-note
This commit is contained in:
commit
721189b23a
@ -14,7 +14,6 @@ using osu.Game.Rulesets.Mania.Beatmaps;
|
|||||||
using osu.Game.Rulesets.Objects.Legacy;
|
using osu.Game.Rulesets.Objects.Legacy;
|
||||||
using osu.Game.Rulesets.Scoring;
|
using osu.Game.Rulesets.Scoring;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
using osuTK.Graphics;
|
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
||||||
{
|
{
|
||||||
@ -151,18 +150,7 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
|||||||
{
|
{
|
||||||
if (lookup is ManiaSkinConfigurationLookup maniaLookup)
|
if (lookup is ManiaSkinConfigurationLookup maniaLookup)
|
||||||
{
|
{
|
||||||
var legacyLookup =
|
return base.GetConfig<LegacyManiaSkinConfigurationLookup, TValue>(new LegacyManiaSkinConfigurationLookup(beatmap.TotalColumns, maniaLookup.Lookup, maniaLookup.ColumnIndex));
|
||||||
base.GetConfig<LegacyManiaSkinConfigurationLookup, TValue>(new LegacyManiaSkinConfigurationLookup(beatmap.TotalColumns, maniaLookup.Lookup, maniaLookup.ColumnIndex));
|
|
||||||
|
|
||||||
if (legacyLookup != null)
|
|
||||||
return legacyLookup;
|
|
||||||
|
|
||||||
// default legacy fallback.
|
|
||||||
switch (maniaLookup.Lookup)
|
|
||||||
{
|
|
||||||
case LegacyManiaSkinConfigurationLookups.ColumnBackgroundColour:
|
|
||||||
return SkinUtils.As<TValue>(new Bindable<Color4>(Color4.Black));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return base.GetConfig<TLookup, TValue>(lookup);
|
return base.GetConfig<TLookup, TValue>(lookup);
|
||||||
|
@ -89,7 +89,7 @@ namespace osu.Game.Rulesets.Mania.UI.Components
|
|||||||
Radius = 5,
|
Radius = 5,
|
||||||
Colour = colour.NewValue.Opacity(0.5f),
|
Colour = colour.NewValue.Opacity(0.5f),
|
||||||
};
|
};
|
||||||
});
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
||||||
|
Loading…
Reference in New Issue
Block a user