1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 17:23:57 +08:00

Move implementation to better place

This commit is contained in:
Andrei Zavatski
2020-03-30 13:42:18 +03:00
Unverified
parent f96229c572
commit 9890544b36
@@ -62,6 +62,11 @@ namespace osu.Game.Rulesets.Osu.Skinning
}
};
bool overlayAboveNumber = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumber)?.Value ?? true;
if (!overlayAboveNumber)
ChangeInternalChildDepth(hitCircleText, -float.MaxValue);
state.BindTo(drawableObject.State);
state.BindValueChanged(updateState, true);
@@ -80,11 +85,6 @@ namespace osu.Game.Rulesets.Osu.Skinning
return tex ?? skin.GetTexture($"hitcircle{name}");
}
bool overlayAboveNumber = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumber)?.Value ?? true;
if (!overlayAboveNumber)
ChangeInternalChildDepth(hitCircleText, -float.MaxValue);
}
private void updateState(ValueChangedEvent<ArmedState> state)