mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 01:47:33 +08: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; }
|
public string Url { get; set; }
|
||||||
|
|
||||||
[JsonProperty("type")]
|
[JsonProperty("type")]
|
||||||
public string Type { get; set; }
|
public ChangelogEntryType Type { get; set; }
|
||||||
|
|
||||||
[JsonProperty("category")]
|
[JsonProperty("category")]
|
||||||
public string Category { get; set; }
|
public string Category { get; set; }
|
||||||
@ -44,4 +44,10 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty("github_user")]
|
[JsonProperty("github_user")]
|
||||||
public APIChangelogUser GithubUser { get; set; }
|
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;
|
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.Font = fontSmall;
|
||||||
t.Colour = entryColour;
|
t.Colour = entryColour;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user