mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 22:22:55 +08:00
Tidy event parameter naming
This commit is contained in:
parent
489caebf59
commit
d4530313aa
@ -68,10 +68,7 @@ namespace osu.Game.Overlays
|
|||||||
article.BindValueChanged(onArticleChanged);
|
article.BindValueChanged(onArticleChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override NewsHeader CreateHeader() => new NewsHeader
|
protected override NewsHeader CreateHeader() => new NewsHeader { ShowFrontPage = ShowFrontPage };
|
||||||
{
|
|
||||||
ShowFrontPage = ShowFrontPage
|
|
||||||
};
|
|
||||||
|
|
||||||
protected override void PopIn()
|
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));
|
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();
|
loadFrontPage();
|
||||||
else
|
else
|
||||||
loadArticle(e.NewValue);
|
loadArticle(article.NewValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadFrontPage(int year = 0)
|
private void loadFrontPage(int year = 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user