mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Remove animations
This commit is contained in:
parent
7e3c97f496
commit
c9d5bea0f1
@ -25,7 +25,6 @@ namespace osu.Game.Overlays.Comments
|
|||||||
private const int child_margin = 20;
|
private const int child_margin = 20;
|
||||||
private const int chevron_margin = 30;
|
private const int chevron_margin = 30;
|
||||||
private const int message_padding = 40;
|
private const int message_padding = 40;
|
||||||
private const int duration = 200;
|
|
||||||
private const float separator_height = 1.5f;
|
private const float separator_height = 1.5f;
|
||||||
private const int deleted_placeholder_margin = 80;
|
private const int deleted_placeholder_margin = 80;
|
||||||
|
|
||||||
@ -159,8 +158,6 @@ namespace osu.Game.Overlays.Comments
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
AutoSizeDuration = duration,
|
|
||||||
AutoSizeEasing = Easing.OutQuint,
|
|
||||||
Masking = true,
|
Masking = true,
|
||||||
Child = new FillFlowContainer
|
Child = new FillFlowContainer
|
||||||
{
|
{
|
||||||
@ -249,14 +246,12 @@ namespace osu.Game.Overlays.Comments
|
|||||||
|
|
||||||
private void onChildExpandedChanged(ValueChangedEvent<bool> expanded)
|
private void onChildExpandedChanged(ValueChangedEvent<bool> expanded)
|
||||||
{
|
{
|
||||||
childCommentsVisibilityContainer.ClearTransforms();
|
|
||||||
|
|
||||||
if (expanded.NewValue)
|
if (expanded.NewValue)
|
||||||
childCommentsVisibilityContainer.AutoSizeAxes = Axes.Y;
|
childCommentsVisibilityContainer.AutoSizeAxes = Axes.Y;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
childCommentsVisibilityContainer.AutoSizeAxes = Axes.None;
|
childCommentsVisibilityContainer.AutoSizeAxes = Axes.None;
|
||||||
childCommentsVisibilityContainer.ResizeHeightTo(0, duration, Easing.OutQuint);
|
childCommentsVisibilityContainer.ResizeHeightTo(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user