mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Add legacy mania combo counter lookups
This commit is contained in:
parent
78cb6b6851
commit
ece532b837
@ -39,6 +39,7 @@ namespace osu.Game.Skinning
|
||||
|
||||
public float HitPosition = DEFAULT_HIT_POSITION;
|
||||
public float LightPosition = (480 - 413) * POSITION_SCALE_FACTOR;
|
||||
public float ComboPosition = 111 * POSITION_SCALE_FACTOR;
|
||||
public float ScorePosition = 300 * POSITION_SCALE_FACTOR;
|
||||
public bool ShowJudgementLine = true;
|
||||
public bool KeysUnderNotes;
|
||||
|
@ -42,6 +42,7 @@ namespace osu.Game.Skinning
|
||||
LeftLineWidth,
|
||||
RightLineWidth,
|
||||
HitPosition,
|
||||
ComboPosition,
|
||||
ScorePosition,
|
||||
LightPosition,
|
||||
StagePaddingTop,
|
||||
@ -63,6 +64,7 @@ namespace osu.Game.Skinning
|
||||
JudgementLineColour,
|
||||
ColumnBackgroundColour,
|
||||
ColumnLightColour,
|
||||
ComboBreakColour,
|
||||
MinimumColumnWidth,
|
||||
LeftStageImage,
|
||||
RightStageImage,
|
||||
|
@ -94,6 +94,10 @@ namespace osu.Game.Skinning
|
||||
currentConfig.LightPosition = (480 - float.Parse(pair.Value, CultureInfo.InvariantCulture)) * LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR;
|
||||
break;
|
||||
|
||||
case "ComboPosition":
|
||||
currentConfig.ComboPosition = (float.Parse(pair.Value, CultureInfo.InvariantCulture)) * LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR;
|
||||
break;
|
||||
|
||||
case "ScorePosition":
|
||||
currentConfig.ScorePosition = (float.Parse(pair.Value, CultureInfo.InvariantCulture)) * LegacyManiaSkinConfiguration.POSITION_SCALE_FACTOR;
|
||||
break;
|
||||
|
@ -152,6 +152,9 @@ namespace osu.Game.Skinning
|
||||
case LegacyManiaSkinConfigurationLookups.HitPosition:
|
||||
return SkinUtils.As<TValue>(new Bindable<float>(existing.HitPosition));
|
||||
|
||||
case LegacyManiaSkinConfigurationLookups.ComboPosition:
|
||||
return SkinUtils.As<TValue>(new Bindable<float>(existing.ComboPosition));
|
||||
|
||||
case LegacyManiaSkinConfigurationLookups.ScorePosition:
|
||||
return SkinUtils.As<TValue>(new Bindable<float>(existing.ScorePosition));
|
||||
|
||||
@ -189,6 +192,9 @@ namespace osu.Game.Skinning
|
||||
Debug.Assert(maniaLookup.ColumnIndex != null);
|
||||
return SkinUtils.As<TValue>(getCustomColour(existing, $"ColourLight{maniaLookup.ColumnIndex + 1}"));
|
||||
|
||||
case LegacyManiaSkinConfigurationLookups.ComboBreakColour:
|
||||
return SkinUtils.As<TValue>(getCustomColour(existing, "ColourBreak"));
|
||||
|
||||
case LegacyManiaSkinConfigurationLookups.MinimumColumnWidth:
|
||||
return SkinUtils.As<TValue>(new Bindable<float>(existing.MinimumColumnWidth));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user