1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-08 23:32:59 +08:00

Fix weird reverse logic

This commit is contained in:
Dean Herbert 2020-03-07 16:29:11 +09:00
parent 01e32896ee
commit aed52179f0
2 changed files with 5 additions and 5 deletions

View File

@ -162,7 +162,7 @@ namespace osu.Game.Tournament.Screens.Gameplay
void expand() void expand()
{ {
chat?.Expand(); chat?.Contract();
using (BeginDelayedSequence(300, true)) using (BeginDelayedSequence(300, true))
{ {
@ -176,7 +176,7 @@ namespace osu.Game.Tournament.Screens.Gameplay
SongBar.Expanded = false; SongBar.Expanded = false;
scoreDisplay.FadeOut(100); scoreDisplay.FadeOut(100);
using (chat?.BeginDelayedSequence(500)) using (chat?.BeginDelayedSequence(500))
chat?.Contract(); chat?.Expand();
} }
switch (state.NewValue) switch (state.NewValue)
@ -203,7 +203,7 @@ namespace osu.Game.Tournament.Screens.Gameplay
break; break;
default: default:
chat.Expand(); chat.Contract();
expand(); expand();
break; break;
} }

View File

@ -92,13 +92,13 @@ namespace osu.Game.Online.Chat
textbox.Text = string.Empty; textbox.Text = string.Empty;
} }
public void Contract() public void Expand()
{ {
this.FadeIn(300); this.FadeIn(300);
this.MoveToY(0, 500, Easing.OutQuint); this.MoveToY(0, 500, Easing.OutQuint);
} }
public void Expand() public void Contract()
{ {
this.FadeOut(200); this.FadeOut(200);
this.MoveToY(100, 500, Easing.In); this.MoveToY(100, 500, Easing.In);