Skip to content

Commit

Permalink
Merge branch 'master' into editor-2
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Jan 21, 2025
2 parents b3b2e00 + 0447f48 commit 42a4bb0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
3 changes: 2 additions & 1 deletion osu.Game.Rulesets.Sentakki/Edit/SentakkiHitObjectComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Edit.Tools;
using osu.Game.Rulesets.Objects;
Expand Down Expand Up @@ -40,7 +41,7 @@ protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnl
new SlideCompositionTool(),
];

protected override IEnumerable<TernaryButton> CreateTernaryButtons()
protected override IEnumerable<Drawable> CreateTernaryButtons()
=> base.CreateTernaryButtons()
.Skip(1)
.Concat(snapProvider.CreateTernaryButtons());
Expand Down
7 changes: 6 additions & 1 deletion osu.Game.Rulesets.Sentakki/Edit/SentakkiLanedSnapGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ public partial class SentakkiSnapGrid : CompositeDrawable
[Resolved]
private OsuColour colours { get; set; } = null!;

public TernaryButton CreateTernaryButton() => new TernaryButton(enabled, "Lane beat snap", () => new SpriteIcon { Icon = FontAwesome.Solid.Ruler });
public DrawableTernaryButton CreateTernaryButton() => new DrawableTernaryButton
{
Current = enabled,
Description = "Lane beat snap",
CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.Ruler }
};

[BackgroundDependencyLoader]
private void load(SentakkiRulesetConfigManager configManager)
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Sentakki/Edit/SentakkiSnapProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public enum SnapMode
private SentakkiSnapGrid lanedSnapGrid = null!;
private SentakkiTouchSnapGrid touchSnapGrid = null!;

public IEnumerable<TernaryButton> CreateTernaryButtons()
public IEnumerable<DrawableTernaryButton> CreateTernaryButtons()
{
yield return lanedSnapGrid.CreateTernaryButton();
yield return touchSnapGrid.CreateTernaryButton();
Expand Down
7 changes: 6 additions & 1 deletion osu.Game.Rulesets.Sentakki/Edit/SentakkiTouchSnapGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ public partial class SentakkiTouchSnapGrid : CompositeDrawable
{
private Bindable<TernaryState> enabled = new Bindable<TernaryState>(TernaryState.True);

public TernaryButton CreateTernaryButton() => new TernaryButton(enabled, "Touch Snap", () => new SpriteIcon { Icon = FontAwesome.Solid.Thumbtack });
public DrawableTernaryButton CreateTernaryButton() => new DrawableTernaryButton
{
Current = enabled,
Description = "Touch Snap",
CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.Thumbtack }
};

private Container dotContainer = null!;

Expand Down
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Sentakki/Objects/SentakkiHitObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public abstract class SentakkiHitObject : HitObject, IHasPosition, IHasDisplayCo
// No-op IHasPosition properties are added to allow work on editor. Remove ASAP

public virtual Vector2 Position { get; set; }
public float X => Position.X;
public float Y => Position.Y;
public float X { get => Position.X; set { } }
public float Y { get => Position.Y; set { } }

protected SentakkiHitObject()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>osu.Game.Rulesets.Sentakki</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2025.101.0"/>
<PackageReference Include="ppy.osu.Game" Version="2025.118.2"/>
</ItemGroup>

<!--Since we aren't changing the assembly name, we use the assembly title to indicate whether it is a dev build-->
Expand Down

0 comments on commit 42a4bb0

Please sign in to comment.