mirror of https://github.com/ppy/osu
Default Type to Title, use ToLower for the screen type title.
This commit is contained in:
parent
74c52e0a7c
commit
ff93a54a64
|
@ -86,7 +86,7 @@ public Header(Screen initialScreen)
|
|||
},
|
||||
};
|
||||
|
||||
breadcrumbs.Current.ValueChanged += s => screenType.Text = ((MultiplayerScreen)s).Type;
|
||||
breadcrumbs.Current.ValueChanged += s => screenType.Text = ((MultiplayerScreen)s).Type.ToLower();
|
||||
breadcrumbs.Current.TriggerChange();
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ public class Lounge : MultiplayerScreen
|
|||
protected readonly FillFlowContainer<DrawableRoom> RoomsContainer;
|
||||
protected readonly RoomInspector Inspector;
|
||||
|
||||
public override string Type => "lounge";
|
||||
public override string Title => "Lounge";
|
||||
|
||||
protected override Container<Drawable> TransitionContent => content;
|
||||
|
|
|
@ -18,7 +18,7 @@ public abstract class MultiplayerScreen : OsuScreen
|
|||
/// <summary>
|
||||
/// The type to display in the title of the <see cref="Header"/>.
|
||||
/// </summary>
|
||||
public abstract string Type { get; }
|
||||
public virtual string Type => Title;
|
||||
|
||||
protected override void OnEntering(Screen last)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue