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

Tidy event parameter naming

This commit is contained in:
Dean Herbert 2021-05-20 15:15:46 +09:00
parent 489caebf59
commit d4530313aa

View File

@ -68,10 +68,7 @@ namespace osu.Game.Overlays
article.BindValueChanged(onArticleChanged);
}
protected override NewsHeader CreateHeader() => new NewsHeader
{
ShowFrontPage = ShowFrontPage
};
protected override NewsHeader CreateHeader() => new NewsHeader { ShowFrontPage = ShowFrontPage };
protected override void PopIn()
{
@ -121,12 +118,12 @@ namespace osu.Game.Overlays
sidebarContainer.Y = Math.Clamp(ScrollFlow.Current - Header.DrawHeight, 0, Math.Max(ScrollFlow.ScrollContent.DrawHeight - DrawHeight - Header.DrawHeight, 0));
}
private void onArticleChanged(ValueChangedEvent<string> e)
private void onArticleChanged(ValueChangedEvent<string> article)
{
if (e.NewValue == null)
if (article.NewValue == null)
loadFrontPage();
else
loadArticle(e.NewValue);
loadArticle(article.NewValue);
}
private void loadFrontPage(int year = 0)