mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 19:42:56 +08:00
Simplify show/hide of text and search in ChatTextBar
This commit is contained in:
parent
eec3fef7a6
commit
fff30e8a6e
@ -108,16 +108,10 @@ namespace osu.Game.Overlays.Chat
|
|||||||
|
|
||||||
ShowSearch.BindValueChanged(change =>
|
ShowSearch.BindValueChanged(change =>
|
||||||
{
|
{
|
||||||
if (change.NewValue)
|
bool showSearch = change.NewValue;
|
||||||
{
|
|
||||||
chattingTextContainer.Hide();
|
chattingTextContainer.FadeTo(showSearch ? 0 : 1);
|
||||||
searchIconContainer.Show();
|
searchIconContainer.FadeTo(showSearch ? 1 : 0);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
chattingTextContainer.Show();
|
|
||||||
searchIconContainer.Hide();
|
|
||||||
}
|
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
currentChannel.BindValueChanged(change =>
|
currentChannel.BindValueChanged(change =>
|
||||||
|
Loading…
Reference in New Issue
Block a user