mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 06:33:21 +08:00
Merge branch 'master' into unstable-rate
This commit is contained in:
commit
1a04ec5375
@ -65,6 +65,9 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
|||||||
|
|
||||||
direction.BindTo(scrollingInfo.Direction);
|
direction.BindTo(scrollingInfo.Direction);
|
||||||
direction.BindValueChanged(onDirectionChanged, true);
|
direction.BindValueChanged(onDirectionChanged, true);
|
||||||
|
|
||||||
|
if (GetColumnSkinConfig<bool>(skin, LegacyManiaSkinConfigurationLookups.KeysUnderNotes)?.Value ?? false)
|
||||||
|
Column.UnderlayElements.Add(CreateProxy());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
private void onDirectionChanged(ValueChangedEvent<ScrollingDirection> direction)
|
||||||
|
@ -79,7 +79,6 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
columnFlow = new ColumnFlow<Column>(definition)
|
columnFlow = new ColumnFlow<Column>(definition)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
Padding = new MarginPadding { Left = COLUMN_SPACING, Right = COLUMN_SPACING },
|
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,7 @@ namespace osu.Game.Skinning
|
|||||||
public float HitPosition = (480 - 402) * POSITION_SCALE_FACTOR;
|
public float HitPosition = (480 - 402) * POSITION_SCALE_FACTOR;
|
||||||
public float LightPosition = (480 - 413) * POSITION_SCALE_FACTOR;
|
public float LightPosition = (480 - 413) * POSITION_SCALE_FACTOR;
|
||||||
public bool ShowJudgementLine = true;
|
public bool ShowJudgementLine = true;
|
||||||
|
public bool KeysUnderNotes;
|
||||||
|
|
||||||
public LegacyManiaSkinConfiguration(int keys)
|
public LegacyManiaSkinConfiguration(int keys)
|
||||||
{
|
{
|
||||||
|
@ -50,5 +50,6 @@ namespace osu.Game.Skinning
|
|||||||
Hit100,
|
Hit100,
|
||||||
Hit50,
|
Hit50,
|
||||||
Hit0,
|
Hit0,
|
||||||
|
KeysUnderNotes,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,6 +97,10 @@ namespace osu.Game.Skinning
|
|||||||
currentConfig.ShowJudgementLine = pair.Value == "1";
|
currentConfig.ShowJudgementLine = pair.Value == "1";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "KeysUnderNotes":
|
||||||
|
currentConfig.KeysUnderNotes = pair.Value == "1";
|
||||||
|
break;
|
||||||
|
|
||||||
case "LightingNWidth":
|
case "LightingNWidth":
|
||||||
parseArrayValue(pair.Value, currentConfig.ExplosionWidth);
|
parseArrayValue(pair.Value, currentConfig.ExplosionWidth);
|
||||||
break;
|
break;
|
||||||
@ -116,6 +120,7 @@ namespace osu.Game.Skinning
|
|||||||
case string _ when pair.Key.StartsWith("KeyImage"):
|
case string _ when pair.Key.StartsWith("KeyImage"):
|
||||||
case string _ when pair.Key.StartsWith("Hit"):
|
case string _ when pair.Key.StartsWith("Hit"):
|
||||||
case string _ when pair.Key.StartsWith("Stage"):
|
case string _ when pair.Key.StartsWith("Stage"):
|
||||||
|
case string _ when pair.Key.StartsWith("Lighting"):
|
||||||
currentConfig.ImageLookups[pair.Key] = pair.Value;
|
currentConfig.ImageLookups[pair.Key] = pair.Value;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -173,6 +173,9 @@ namespace osu.Game.Skinning
|
|||||||
case LegacyManiaSkinConfigurationLookups.ShowJudgementLine:
|
case LegacyManiaSkinConfigurationLookups.ShowJudgementLine:
|
||||||
return SkinUtils.As<TValue>(new Bindable<bool>(existing.ShowJudgementLine));
|
return SkinUtils.As<TValue>(new Bindable<bool>(existing.ShowJudgementLine));
|
||||||
|
|
||||||
|
case LegacyManiaSkinConfigurationLookups.ExplosionImage:
|
||||||
|
return SkinUtils.As<TValue>(getManiaImage(existing, "LightingN"));
|
||||||
|
|
||||||
case LegacyManiaSkinConfigurationLookups.ExplosionScale:
|
case LegacyManiaSkinConfigurationLookups.ExplosionScale:
|
||||||
Debug.Assert(maniaLookup.TargetColumn != null);
|
Debug.Assert(maniaLookup.TargetColumn != null);
|
||||||
|
|
||||||
@ -255,6 +258,9 @@ namespace osu.Game.Skinning
|
|||||||
case LegacyManiaSkinConfigurationLookups.Hit300:
|
case LegacyManiaSkinConfigurationLookups.Hit300:
|
||||||
case LegacyManiaSkinConfigurationLookups.Hit300g:
|
case LegacyManiaSkinConfigurationLookups.Hit300g:
|
||||||
return SkinUtils.As<TValue>(getManiaImage(existing, maniaLookup.Lookup.ToString()));
|
return SkinUtils.As<TValue>(getManiaImage(existing, maniaLookup.Lookup.ToString()));
|
||||||
|
|
||||||
|
case LegacyManiaSkinConfigurationLookups.KeysUnderNotes:
|
||||||
|
return SkinUtils.As<TValue>(new Bindable<bool>(existing.KeysUnderNotes));
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user