2022-08-02 18:50:57 +08:00
|
|
|
// 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 osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics.Rendering;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Pippidon
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class PippidonRulesetIcon : Sprite
|
2022-08-02 18:50:57 +08:00
|
|
|
{
|
|
|
|
private readonly Ruleset ruleset;
|
|
|
|
|
|
|
|
public PippidonRulesetIcon(Ruleset ruleset)
|
|
|
|
{
|
|
|
|
this.ruleset = ruleset;
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(IRenderer renderer)
|
|
|
|
{
|
|
|
|
Texture = new TextureStore(renderer, new TextureLoaderStore(ruleset.CreateResourceStore()), false).Get("Textures/coin");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|