mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 05:07:23 +09:00
46 lines
1.3 KiB
C#
46 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.
|
|
|
|
using System.Collections.Generic;
|
|
using osu.Framework.Audio.Sample;
|
|
using osu.Framework.Bindables;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Textures;
|
|
using osu.Game.Audio;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Skinning
|
|
{
|
|
public class DefaultSkin : Skin
|
|
{
|
|
public DefaultSkin()
|
|
: base(SkinInfo.Default)
|
|
{
|
|
Configuration = new DefaultSkinConfiguration();
|
|
}
|
|
|
|
public override Drawable GetDrawableComponent(ISkinComponent component) => null;
|
|
|
|
public override Texture GetTexture(string componentName) => null;
|
|
|
|
public override SampleChannel GetSample(ISampleInfo sampleInfo) => null;
|
|
|
|
public override IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
|
|
{
|
|
switch (lookup)
|
|
{
|
|
case GlobalSkinConfiguration global:
|
|
switch (global)
|
|
{
|
|
case GlobalSkinConfiguration.ComboColours:
|
|
return SkinUtils.As<TValue>(new Bindable<List<Color4>>(Configuration.ComboColours));
|
|
}
|
|
|
|
break;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|