File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ public enum BeatmapOnlineStatus
14
14
/// This is a special status given when local changes are made via the editor.
15
15
/// Once in this state, online status changes should be ignored unless the beatmap is reverted or submitted.
16
16
/// </summary>
17
- [ Description ( "Local" ) ]
18
17
[ LocalisableDescription ( typeof ( SongSelectStrings ) , nameof ( SongSelectStrings . LocallyModified ) ) ]
19
18
LocallyModified = - 4 ,
20
19
20
+ [ Description ( "Unknown" ) ]
21
21
None = - 3 ,
22
22
23
23
[ LocalisableDescription ( typeof ( BeatmapsetsStrings ) , nameof ( BeatmapsetsStrings . ShowStatusGraveyard ) ) ]
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ namespace osu.Game.Beatmaps.Drawables
19
19
{
20
20
public partial class BeatmapSetOnlineStatusPill : CircularContainer , IHasTooltip
21
21
{
22
+ /// <summary>
23
+ /// Whether to show <see cref="BeatmapOnlineStatus.None"/> as "unknownn" instead of fading out.
24
+ /// </summary>
25
+ public bool ShowUnknownStatus { get ; init ; } = false ;
26
+
22
27
public BeatmapOnlineStatus Status
23
28
{
24
29
get => status ;
@@ -93,7 +98,7 @@ protected override void LoadComplete()
93
98
94
99
private void updateState ( )
95
100
{
96
- if ( Status == BeatmapOnlineStatus . None )
101
+ if ( Status == BeatmapOnlineStatus . None && ! ShowUnknownStatus )
97
102
{
98
103
this . FadeOut ( animation_duration , Easing . OutQuint ) ;
99
104
return ;
Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ public Color4 ForHitResult(HitResult result)
129
129
{
130
130
switch ( status )
131
131
{
132
+ case BeatmapOnlineStatus . None :
133
+ return Color4 . RosyBrown ;
134
+
132
135
case BeatmapOnlineStatus . LocallyModified :
133
136
return Color4 . OrangeRed ;
134
137
You can’t perform that action at this time.
0 commit comments