1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:20:04 +08:00

Ensure OsuResumeCursor can change scale when it is being shown

This commit is contained in:
HoLLy-HaCKeR 2019-10-12 11:59:22 +02:00
parent fdc17d2adb
commit 7931510d7b

View File

@ -43,7 +43,13 @@ namespace osu.Game.Rulesets.Osu.UI
Add(localCursorContainer = newContainer);
clickToResumeCursor.CursorScale = newContainer.CalculatedCursorScale.Value;
newContainer.CalculatedCursorScale.ValueChanged += e => clickToResumeCursor.CursorScale = e.NewValue;
clickToResumeCursor.Scale = new Vector2(newContainer.CalculatedCursorScale.Value);
newContainer.CalculatedCursorScale.ValueChanged += e =>
{
clickToResumeCursor.CursorScale = e.NewValue;
clickToResumeCursor.Scale = new Vector2(e.NewValue);
};
}
}