mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Implement ChangelogEntryType
This commit is contained in:
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,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;
|
||||||
|
Reference in New Issue
Block a user