mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
#nullable disable
|
|
|
|
using System.IO;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Framework.Localisation;
|
|
using osuTK;
|
|
|
|
namespace osu.Framework.Graphics.UserInterface
|
|
{
|
|
public partial class BasicDirectorySelector : DirectorySelector
|
|
{
|
|
protected override DirectorySelectorBreadcrumbDisplay CreateBreadcrumb() => new BasicDirectorySelectorBreadcrumbDisplay();
|
|
|
|
protected override Drawable CreateHiddenToggleButton() => new BasicButton
|
|
{
|
|
Size = new Vector2(200, 25),
|
|
Text = "Toggle hidden items",
|
|
Action = ShowHiddenItems.Toggle,
|
|
};
|
|
|
|
protected override DirectorySelectorDirectory CreateDirectoryItem(DirectoryInfo directory, LocalisableString? displayName = null) => new BasicDirectorySelectorDirectory(directory, displayName);
|
|
|
|
protected override DirectorySelectorDirectory CreateParentDirectoryItem(DirectoryInfo directory) => new BasicDirectorySelectorParentDirectory(directory);
|
|
|
|
protected override ScrollContainer<Drawable> CreateScrollContainer() => new BasicScrollContainer();
|
|
|
|
protected override void NotifySelectionError()
|
|
{
|
|
this.FlashColour(Colour4.Red, 300);
|
|
}
|
|
}
|
|
}
|