-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
140 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using fluXis.Game.Map.Structures.Bases; | ||
using Newtonsoft.Json; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Map.Structures.Events; | ||
|
||
public class HitObjectEaseEvent : IMapEvent, IHasEasing | ||
{ | ||
[JsonProperty("time")] | ||
public double Time { get; set; } | ||
|
||
[JsonProperty("ease")] | ||
public Easing Easing { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
fluXis.Game/Screens/Edit/Tabs/Design/Points/Entries/HitObjectEaseEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using fluXis.Game.Graphics.Sprites; | ||
using fluXis.Game.Graphics.UserInterface.Color; | ||
using fluXis.Game.Map.Structures.Bases; | ||
using fluXis.Game.Map.Structures.Events; | ||
using fluXis.Game.Screens.Edit.Tabs.Shared.Points.List; | ||
using fluXis.Game.Screens.Edit.Tabs.Shared.Points.Settings.Preset; | ||
using osu.Framework.Graphics; | ||
|
||
namespace fluXis.Game.Screens.Edit.Tabs.Design.Points.Entries; | ||
|
||
public partial class HitObjectEaseEntry : PointListEntry | ||
{ | ||
protected override string Text => "HitObject Ease"; | ||
protected override Colour4 Color => FluXisColors.HitObjectEase; | ||
|
||
private HitObjectEaseEvent ease => Object as HitObjectEaseEvent; | ||
|
||
public HitObjectEaseEntry(HitObjectEaseEvent obj) | ||
: base(obj) | ||
{ | ||
} | ||
|
||
public override ITimedObject CreateClone() => new HitObjectEaseEvent | ||
{ | ||
Time = Object.Time, | ||
Easing = ease.Easing | ||
}; | ||
|
||
protected override Drawable[] CreateValueContent() | ||
{ | ||
return new Drawable[] | ||
{ | ||
new FluXisSpriteText | ||
{ | ||
Text = $"{ease.Easing}", | ||
Colour = Color | ||
} | ||
}; | ||
} | ||
|
||
protected override IEnumerable<Drawable> CreateSettings() | ||
{ | ||
return base.CreateSettings().Concat(new Drawable[] | ||
{ | ||
new PointSettingsEasing<HitObjectEaseEvent>(Map, ease) | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters