mirror of
https://github.com/ppy/osu.git
synced 2025-03-17 22:17:25 +08:00
Make protected variables private
This commit is contained in:
parent
728258d93a
commit
200592114f
@ -16,28 +16,29 @@ namespace osu.Game.Graphics.Containers.Markdown
|
||||
[Resolved(canBeNull: true)]
|
||||
private OsuGame game { get; set; }
|
||||
|
||||
protected string Text;
|
||||
protected string Title;
|
||||
private readonly string text;
|
||||
private readonly string title;
|
||||
|
||||
public OsuMarkdownLinkText(string text, LinkInline linkInline)
|
||||
: base(text, linkInline)
|
||||
{
|
||||
Text = text;
|
||||
Title = linkInline.Title;
|
||||
this.text = text;
|
||||
title = linkInline.Title;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OverlayColourProvider colourProvider)
|
||||
{
|
||||
var text = CreateSpriteText().With(t => t.Text = Text);
|
||||
var textDrawable = CreateSpriteText().With(t => t.Text = text);
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
text,
|
||||
new OsuMarkdownLinkCompiler(new[] { text })
|
||||
textDrawable,
|
||||
new OsuMarkdownLinkCompiler(new[] { textDrawable })
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Action = OnLinkPressed,
|
||||
TooltipText = Title ?? Url,
|
||||
TooltipText = title ?? Url,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user