Default Type to Title, use ToLower for the screen type title.

This commit is contained in:
DrabWeb 2018-05-30 23:16:54 -03:00
parent 74c52e0a7c
commit ff93a54a64
3 changed files with 2 additions and 3 deletions

View File

@ -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();
}

View File

@ -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;

View File

@ -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)
{