make ScreenTitle abstract and properties protected

This commit is contained in:
jorolf
2019-03-11 19:10:37 +01:00
parent f3ab5070b9
commit f91e4a1fdd
2 changed files with 14 additions and 9 deletions

View File

@ -9,24 +9,24 @@ using osuTK.Graphics;
namespace osu.Game.Graphics.UserInterface
{
public class ScreenTitle : CompositeDrawable, IHasAccentColour
public abstract class ScreenTitle : CompositeDrawable, IHasAccentColour
{
private readonly SpriteIcon iconSprite;
private readonly OsuSpriteText titleText, pageText;
public FontAwesome Icon
protected FontAwesome Icon
{
get => iconSprite.Icon;
set => iconSprite.Icon = value;
}
public string Title
protected string Title
{
get => titleText.Text;
set => titleText.Text = value;
}
public string Section
protected string Section
{
get => pageText.Text;
set => pageText.Text = value;
@ -38,7 +38,7 @@ namespace osu.Game.Graphics.UserInterface
set => pageText.Colour = value;
}
public ScreenTitle()
protected ScreenTitle()
{
AutoSizeAxes = Axes.Both;