1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:57:24 +08:00

Update default cursor smoke implementation to use a texture

This commit is contained in:
Dean Herbert 2022-10-05 18:26:17 +09:00
parent 33f33a6845
commit 04abb2ce8f

View File

@ -1,13 +1,19 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // 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. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics.Textures;
namespace osu.Game.Rulesets.Osu.Skinning.Default namespace osu.Game.Rulesets.Osu.Skinning.Default
{ {
public class DefaultSmoke : Smoke public class DefaultSmoke : Smoke
{ {
public DefaultSmoke() [BackgroundDependencyLoader]
private void load(TextureStore textures)
{ {
Radius = 2; // ISkinSource doesn't currently fallback to global textures.
// We might want to change this in the future if the intention is to allow the user to skin this as per legacy skins.
Texture = textures.Get("Gameplay/osu/cursor-smoke");
} }
} }
} }