mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 23:36:10 +08:00
Remove manual binding of nested objects in DrawableManiaHitObject
This is now handled by `Column` itself. Leaving the logic here as well will cause a circular bindable flow and stack overflow.
This commit is contained in:
parent
4b772643e9
commit
52ad766f86
@ -65,22 +65,6 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|||||||
Direction.BindValueChanged(OnDirectionChanged, true);
|
Direction.BindValueChanged(OnDirectionChanged, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnApply()
|
|
||||||
{
|
|
||||||
base.OnApply();
|
|
||||||
|
|
||||||
if (ParentHitObject != null)
|
|
||||||
AccentColour.BindTo(ParentHitObject.AccentColour);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnFree()
|
|
||||||
{
|
|
||||||
base.OnFree();
|
|
||||||
|
|
||||||
if (ParentHitObject != null)
|
|
||||||
AccentColour.UnbindFrom(ParentHitObject.AccentColour);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual void OnDirectionChanged(ValueChangedEvent<ScrollingDirection> e)
|
protected virtual void OnDirectionChanged(ValueChangedEvent<ScrollingDirection> e)
|
||||||
{
|
{
|
||||||
Anchor = Origin = e.NewValue == ScrollingDirection.Up ? Anchor.TopCentre : Anchor.BottomCentre;
|
Anchor = Origin = e.NewValue == ScrollingDirection.Up ? Anchor.TopCentre : Anchor.BottomCentre;
|
||||||
|
Loading…
Reference in New Issue
Block a user