1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Fix BeatmapAttributeText breaking due to enum serialisation woes

This commit is contained in:
Bartłomiej Dach 2024-05-03 14:27:34 +02:00
parent 3840e92576
commit a23d25e0a1
No known key found for this signature in database

View File

@ -125,6 +125,8 @@ namespace osu.Game.Skinning.Components
protected override void SetFont(FontUsage font) => text.Font = font.With(size: 40); protected override void SetFont(FontUsage font) => text.Font = font.With(size: 40);
} }
// WARNING: DO NOT ADD ANY VALUES TO THIS ENUM ANYWHERE ELSE THAN AT THE END.
// Doing so will break existing user skins.
public enum BeatmapAttribute public enum BeatmapAttribute
{ {
CircleSize, CircleSize,
@ -134,11 +136,11 @@ namespace osu.Game.Skinning.Components
StarRating, StarRating,
Title, Title,
Artist, Artist,
Source,
DifficultyName, DifficultyName,
Creator, Creator,
Length, Length,
RankedStatus, RankedStatus,
BPM, BPM,
Source,
} }
} }