mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 07:23:14 +08:00
Rename legacy actions
This commit is contained in:
parent
da45070373
commit
3d551b08a9
@ -75,7 +75,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
{
|
||||
Amount = 5,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2012, 10, 11)),
|
||||
Action = KudosuAction.Give,
|
||||
Action = KudosuAction.ForumGive,
|
||||
Post = new APIKudosuHistory.ModdingPost
|
||||
{
|
||||
Title = @"Random post 2",
|
||||
@ -91,7 +91,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
{
|
||||
Amount = 8,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2013, 9, 11)),
|
||||
Action = KudosuAction.Reset,
|
||||
Action = KudosuAction.ForumReset,
|
||||
Post = new APIKudosuHistory.ModdingPost
|
||||
{
|
||||
Title = @"Random post 3",
|
||||
@ -107,7 +107,7 @@ namespace osu.Game.Tests.Visual.Online
|
||||
{
|
||||
Amount = 7,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2014, 8, 11)),
|
||||
Action = KudosuAction.Revoke,
|
||||
Action = KudosuAction.ForumRevoke,
|
||||
Post = new APIKudosuHistory.ModdingPost
|
||||
{
|
||||
Title = @"Random post 4",
|
||||
|
@ -21,16 +21,16 @@ namespace osu.Game.Online.API.Requests
|
||||
|
||||
public enum KudosuAction
|
||||
{
|
||||
Give,
|
||||
VoteGive,
|
||||
Reset,
|
||||
VoteReset,
|
||||
DenyKudosuReset,
|
||||
Revoke,
|
||||
AllowKudosuGive,
|
||||
DeleteReset,
|
||||
RestoreGive,
|
||||
DenyKudosuReset,
|
||||
ForumGive,
|
||||
ForumReset,
|
||||
ForumRevoke,
|
||||
RecalculateGive,
|
||||
RecalculateReset
|
||||
RecalculateReset,
|
||||
RestoreGive,
|
||||
VoteGive,
|
||||
VoteReset,
|
||||
}
|
||||
}
|
||||
|
@ -80,10 +80,10 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
|
||||
case KudosuAction.VoteGive:
|
||||
return @"from obtaining votes in modding post of";
|
||||
|
||||
case KudosuAction.Give:
|
||||
case KudosuAction.ForumGive:
|
||||
return $@"from {userLink()} for a post at";
|
||||
|
||||
case KudosuAction.Reset:
|
||||
case KudosuAction.ForumReset:
|
||||
return $@"Kudosu reset by {userLink()} for the post";
|
||||
|
||||
case KudosuAction.VoteReset:
|
||||
@ -92,7 +92,7 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
|
||||
case KudosuAction.DenyKudosuReset:
|
||||
return @"from modding post";
|
||||
|
||||
case KudosuAction.Revoke:
|
||||
case KudosuAction.ForumRevoke:
|
||||
return $@"Denied kudosu by {userLink()} for the post";
|
||||
|
||||
case KudosuAction.AllowKudosuGive:
|
||||
@ -120,7 +120,7 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
|
||||
switch (historyItem.Action)
|
||||
{
|
||||
case KudosuAction.VoteGive:
|
||||
case KudosuAction.Give:
|
||||
case KudosuAction.ForumGive:
|
||||
case KudosuAction.AllowKudosuGive:
|
||||
case KudosuAction.RestoreGive:
|
||||
case KudosuAction.RecalculateGive:
|
||||
|
Loading…
Reference in New Issue
Block a user