Override text header.

This commit is contained in:
Lucas A 2021-05-17 13:04:49 +02:00
parent db255e6814
commit a38fc1a2e0

View File

@ -4,9 +4,8 @@
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using osu.Framework.Localisation;
using osu.Framework.Screens; using osu.Framework.Screens;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Overlays.Settings.Sections.Maintenance namespace osu.Game.Overlays.Settings.Sections.Maintenance
{ {
@ -16,11 +15,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
protected override bool IsValidDirectory(DirectoryInfo info) => info?.GetFiles("osu!.*.cfg").Any() ?? false; protected override bool IsValidDirectory(DirectoryInfo info) => info?.GetFiles("osu!.*.cfg").Any() ?? false;
protected override OsuSpriteText CreateHeader() => new OsuSpriteText public override LocalisableString HeaderText => "Please select your osu!stable install location";
{
Text = "Please select your osu!stable install location",
Font = OsuFont.Default.With(size: 40)
};
public StableDirectorySelectScreen(TaskCompletionSource<string> taskCompletionSource) public StableDirectorySelectScreen(TaskCompletionSource<string> taskCompletionSource)
{ {