mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Refactor2
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user