1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:03:05 +08:00

Merge pull request #28083 from bdach/beatmap-attribute-text-breakage

Fix `BeatmapAttributeText` breaking due to enum serialisation woes
This commit is contained in:
Dean Herbert 2024-05-03 21:18:26 +08:00 committed by GitHub
commit 5cdaafdb1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,6 +125,8 @@ namespace osu.Game.Skinning.Components
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
{
CircleSize,
@ -134,11 +136,11 @@ namespace osu.Game.Skinning.Components
StarRating,
Title,
Artist,
Source,
DifficultyName,
Creator,
Length,
RankedStatus,
BPM,
Source,
}
}