Move implementation to better place

This commit is contained in:
Andrei Zavatski 2020-03-30 13:42:18 +03:00
parent f96229c572
commit 9890544b36
1 changed files with 5 additions and 5 deletions

View File

@ -62,6 +62,11 @@ private void load(DrawableHitObject drawableObject, ISkinSource skin)
}
};
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 @@ Texture getTextureWithFallback(string name)
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)