mirror of
https://github.com/ppy/osu
synced 2025-03-11 05:49:12 +00:00
Add support for "additions" in changelog (#6177)
Add support for "additions" in changelog
This commit is contained in:
commit
a76771e696
@ -24,7 +24,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string Type { get; set; }
|
||||
public ChangelogEntryType Type { get; set; }
|
||||
|
||||
[JsonProperty("category")]
|
||||
public string Category { get; set; }
|
||||
@ -44,4 +44,10 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
[JsonProperty("github_user")]
|
||||
public APIChangelogUser GithubUser { get; set; }
|
||||
}
|
||||
|
||||
public enum ChangelogEntryType
|
||||
{
|
||||
Add,
|
||||
Fix
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Changelog
|
||||
|
||||
var entryColour = entry.Major ? colours.YellowLight : Color4.White;
|
||||
|
||||
title.AddIcon(FontAwesome.Solid.Check, t =>
|
||||
title.AddIcon(entry.Type == ChangelogEntryType.Fix ? FontAwesome.Solid.Check : FontAwesome.Solid.Plus, t =>
|
||||
{
|
||||
t.Font = fontSmall;
|
||||
t.Colour = entryColour;
|
||||
|
Loading…
Reference in New Issue
Block a user