Skip to content

Commit

Permalink
Rename to LaneNoteVisual
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Jul 7, 2024
1 parent c021b36 commit 0596657
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions osu.Game.Rulesets.Sentakki.Tests/Objects/TestSceneNewRing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class TestSceneNewRing : OsuTestScene
{
protected override Ruleset CreateRuleset() => new SentakkiRuleset();

private RingNote ring = null!;
private LaneNoteVisual ring = null!;

public TestSceneNewRing()
{
Expand All @@ -26,7 +26,7 @@ public TestSceneNewRing()
Colour = Color4.White
});

Add(ring = new RingNote()
Add(ring = new LaneNoteVisual()
{
Origin = Anchor.CentreLeft,
Anchor = Anchor.Centre,
Expand All @@ -36,7 +36,7 @@ public TestSceneNewRing()
Glow = true,
Thickness = 0.24f
});
Add(new RingNote()
Add(new LaneNoteVisual()
{
Origin = Anchor.CentreRight,
Anchor = Anchor.Centre,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using osu.Framework.Graphics.Sprites;
using osu.Game.Rulesets.Objects.Drawables;
using osuTK;
using osuTK.Graphics;

namespace osu.Game.Rulesets.Sentakki.Objects.Drawables.Pieces;

Expand All @@ -19,7 +18,7 @@ public enum NoteShape
Star
}

public partial class RingNote : Sprite, ITexturedShaderDrawable
public partial class LaneNoteVisual : Sprite, ITexturedShaderDrawable
{
public NoteShape Shape { get; init; } = NoteShape.Ring;
private float thickness = 0.25f;
Expand Down Expand Up @@ -63,7 +62,7 @@ public bool Glow

public new IShader TextureShader { get; private set; } = null!;

protected override DrawNode CreateDrawNode() => new RingNoteDrawNode(this);
protected override DrawNode CreateDrawNode() => new LaneNoteVisualDrawNode(this);

private BindableBool exBindable = new BindableBool();

Expand Down Expand Up @@ -95,9 +94,9 @@ private void load(ShaderManager shaders, IRenderer renderer, DrawableHitObject?
exBindable.BindValueChanged(b => Glow = b.NewValue, true);
}

private partial class RingNoteDrawNode : SpriteDrawNode
private partial class LaneNoteVisualDrawNode : SpriteDrawNode
{
protected new RingNote Source => (RingNote)base.Source;
protected new LaneNoteVisual Source => (LaneNoteVisual)base.Source;
protected override bool CanDrawOpaqueInterior => false;
private IUniformBuffer<ShapeParameters>? shapeParameters;

Expand All @@ -106,7 +105,7 @@ private partial class RingNoteDrawNode : SpriteDrawNode
private bool glow;
private float shadowRadius;

public RingNoteDrawNode(RingNote source)
public RingNoteDrawNode(LaneNoteVisual source)
: base(source)
{
}
Expand Down Expand Up @@ -153,7 +152,6 @@ private record struct ShapeParameters
public UniformBool Glow;

public UniformPadding8 __;

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public NoteRingPiece(bool hex = false)
Origin = Anchor.Centre;
InternalChildren = new Drawable[]
{
new RingNote(){
new LaneNoteVisual(){
RelativeSizeAxes = Axes.Both,
Shape = hex ? NoteShape.Hex : NoteShape.Ring,
Anchor = Anchor.Centre,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public StarPiece()
private void load()
{
AddRangeInternal(new Drawable[]{
new RingNote{
new LaneNoteVisual{
RelativeSizeAxes = Axes.Both,

Shape = NoteShape.Star,
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 0596657

Please sign in to comment.