Refactor2

This commit is contained in:
HoutarouOreki
2018-07-19 21:49:13 +02:00
parent bcd132e87f
commit a9299423cd
12 changed files with 36 additions and 74 deletions

View File

@ -79,6 +79,7 @@ namespace osu.Game.Overlays
},
},
};
OnLoadComplete += d => FetchChangelog(); // is i
Streams.OnSelection = () =>
{
if (Streams.SelectedRelease != null)
@ -86,13 +87,9 @@ namespace osu.Game.Overlays
header.ChangelogEntry = Streams.SelectedRelease;
}
header.ShowReleaseStream();
content.Clear();
content.Clear(); // this should probably happen with some transition
content.Add(new ChangelogContentGroup(Streams.SelectedRelease));
};
Streams.BadgesContainer.OnLoadComplete += d =>
{
FetchChangelog();
};
header.OnListingActivated += () =>
{
Streams.SelectedRelease = null;
@ -151,6 +148,7 @@ namespace osu.Game.Overlays
var req = new GetChangelogLatestBuildsRequest();
req.Success += res =>
{
Streams.BadgesContainer.Clear();
foreach (APIChangelog item in res)
{
Streams.BadgesContainer.Add(new StreamBadge(item));