mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:43:01 +08:00
Rename classes to better emphasise that Smoke
is a single trail segment
This commit is contained in:
parent
04abb2ce8f
commit
1e5ff2679b
@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Osu
|
||||
SliderBall,
|
||||
SliderBody,
|
||||
SpinnerBody,
|
||||
Smoke,
|
||||
SmokeTrail,
|
||||
ApproachCircle,
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ using osu.Framework.Graphics.Textures;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Skinning.Default
|
||||
{
|
||||
public class DefaultSmoke : Smoke
|
||||
public class DefaultSmokeSegment : SmokeSegment
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(TextureStore textures)
|
@ -6,7 +6,7 @@ using osu.Game.Skinning;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
{
|
||||
public class LegacySmoke : Smoke
|
||||
public class LegacySmokeSegment : SmokeSegment
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(ISkinSource skin)
|
@ -106,9 +106,9 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
|
||||
return null;
|
||||
|
||||
case OsuSkinComponents.Smoke:
|
||||
case OsuSkinComponents.SmokeTrail:
|
||||
if (GetTexture("cursor-smoke") != null)
|
||||
return new LegacySmoke();
|
||||
return new LegacySmokeSegment();
|
||||
|
||||
return null;
|
||||
|
||||
|
@ -20,7 +20,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Skinning
|
||||
{
|
||||
public abstract class Smoke : Drawable, ITexturedShaderDrawable
|
||||
public abstract class SmokeSegment : Drawable, ITexturedShaderDrawable
|
||||
{
|
||||
public IShader? TextureShader { get; private set; }
|
||||
public IShader? RoundedTextureShader { get; private set; }
|
||||
@ -214,7 +214,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
|
||||
protected class SmokeDrawNode : TexturedShaderDrawNode
|
||||
{
|
||||
protected new Smoke Source => (Smoke)base.Source;
|
||||
protected new SmokeSegment Source => (SmokeSegment)base.Source;
|
||||
|
||||
protected double SmokeStartTime { get; private set; }
|
||||
protected double SmokeEndTime { get; private set; }
|
@ -14,6 +14,9 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Manages smoke trails generated from user input.
|
||||
/// </summary>
|
||||
[Cached]
|
||||
public class SmokeContainer : Container, IRequireHighFrequencyMousePosition, IKeyBindingHandler<OsuAction>
|
||||
{
|
||||
@ -31,7 +34,7 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
if (e.Action == OsuAction.Smoke)
|
||||
{
|
||||
isSmoking = true;
|
||||
AddInternal(new SkinnableDrawable(new OsuSkinComponent(OsuSkinComponents.Smoke), _ => new DefaultSmoke()));
|
||||
AddInternal(new SkinnableDrawable(new OsuSkinComponent(OsuSkinComponents.SmokeTrail), _ => new DefaultSmokeSegment()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user