mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 13:42:56 +08:00
apply ScorePosition to the judgement container
This commit is contained in:
parent
f14e49c72e
commit
2108844319
@ -181,9 +181,8 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
|
|
||||||
protected override void OnSkinChanged()
|
protected override void OnSkinChanged()
|
||||||
{
|
{
|
||||||
judgements.ScorePosition = CurrentSkin.GetConfig<ManiaSkinConfigurationLookup, float>(
|
judgements.ScorePosition = CurrentSkin.GetManiaSkinConfig<float>(LegacyManiaSkinConfigurationLookups.ScorePosition)
|
||||||
new ManiaSkinConfigurationLookup(LegacyManiaSkinConfigurationLookups.ScorePosition))
|
?.Value ?? 0;
|
||||||
?.Value ?? 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
|
@ -35,7 +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 float ScorePosition = (480 - 402 + 150) * POSITION_SCALE_FACTOR;
|
public float ScorePosition = (480 - 300) * POSITION_SCALE_FACTOR;
|
||||||
public bool ShowJudgementLine = true;
|
public bool ShowJudgementLine = true;
|
||||||
public bool KeysUnderNotes;
|
public bool KeysUnderNotes;
|
||||||
|
|
||||||
|
@ -169,6 +169,9 @@ namespace osu.Game.Skinning
|
|||||||
case LegacyManiaSkinConfigurationLookups.HitPosition:
|
case LegacyManiaSkinConfigurationLookups.HitPosition:
|
||||||
return SkinUtils.As<TValue>(new Bindable<float>(existing.HitPosition));
|
return SkinUtils.As<TValue>(new Bindable<float>(existing.HitPosition));
|
||||||
|
|
||||||
|
case LegacyManiaSkinConfigurationLookups.ScorePosition:
|
||||||
|
return SkinUtils.As<TValue>(new Bindable<float>(existing.ScorePosition));
|
||||||
|
|
||||||
case LegacyManiaSkinConfigurationLookups.LightPosition:
|
case LegacyManiaSkinConfigurationLookups.LightPosition:
|
||||||
return SkinUtils.As<TValue>(new Bindable<float>(existing.LightPosition));
|
return SkinUtils.As<TValue>(new Bindable<float>(existing.LightPosition));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user