A game framework written with osu! in mind.
at master 25 lines 852 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using System.IO; 5using osu.Framework.Graphics.Sprites; 6 7namespace osu.Framework.Graphics.UserInterface 8{ 9 public class BasicDirectorySelectorDirectory : DirectorySelectorDirectory 10 { 11 protected override IconUsage? Icon => Directory.Name.Contains(Path.DirectorySeparatorChar) 12 ? FontAwesome.Solid.Database 13 : FontAwesome.Regular.Folder; 14 15 protected override SpriteText CreateSpriteText() => new SpriteText 16 { 17 Font = FrameworkFont.Regular.With(size: FONT_SIZE) 18 }; 19 20 public BasicDirectorySelectorDirectory(DirectoryInfo directory, string displayName = null) 21 : base(directory, displayName) 22 { 23 } 24 } 25}