mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
make ScreenTitle abstract and properties protected
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user