mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add StackedPosition/StackedEndPosition and offset slider curves by StackOffset.
This commit is contained in:
@ -13,13 +13,18 @@ namespace osu.Game.Modes.Osu.Objects
|
||||
{
|
||||
public Vector2 Position { get; set; }
|
||||
|
||||
public float Scale { get; set; } = 1;
|
||||
public Vector2 StackedPosition => Position + StackOffset;
|
||||
|
||||
public virtual Vector2 EndPosition => Position;
|
||||
|
||||
public int StackHeight { get; set; }
|
||||
public Vector2 StackedEndPosition => EndPosition + StackOffset;
|
||||
|
||||
public virtual int StackHeight { get; set; }
|
||||
|
||||
public Vector2 StackOffset => new Vector2(StackHeight * Scale * -6.4f);
|
||||
|
||||
public float Scale { get; set; } = 1;
|
||||
|
||||
public override void SetDefaultsFromBeatmap(Beatmap beatmap)
|
||||
{
|
||||
base.SetDefaultsFromBeatmap(beatmap);
|
||||
|
Reference in New Issue
Block a user