-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2312 from andy840119/simply-logic-in-the-stage-info
Simply logic in the stage info.
- Loading branch information
Showing
15 changed files
with
35 additions
and
254 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using Newtonsoft.Json; | ||
using osu.Framework.Bindables; | ||
using osu.Game.Rulesets.Karaoke.Objects; | ||
using osu.Game.Rulesets.Karaoke.Utils; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Stages.Infos.Classic; | ||
|
||
public class ClassicLyricLayout : StageElement, IComparable<ClassicLyricLayout> | ||
public class ClassicLyricLayout : StageElement | ||
{ | ||
[JsonIgnore] | ||
public readonly Bindable<ClassicLyricLayoutAlignment> AlignmentBindable = new(ClassicLyricLayoutAlignment.Center); | ||
|
@@ -20,11 +18,7 @@ public class ClassicLyricLayout : StageElement, IComparable<ClassicLyricLayout> | |
public ClassicLyricLayoutAlignment Alignment | ||
{ | ||
get => AlignmentBindable.Value; | ||
set | ||
{ | ||
AlignmentBindable.Value = value; | ||
TriggerOrderVersionChanged(); | ||
} | ||
set => AlignmentBindable.Value = value; | ||
} | ||
|
||
[JsonIgnore] | ||
|
@@ -36,11 +30,7 @@ public ClassicLyricLayoutAlignment Alignment | |
public float HorizontalMargin | ||
{ | ||
get => HorizontalMarginBindable.Value; | ||
set | ||
{ | ||
HorizontalMarginBindable.Value = value; | ||
TriggerOrderVersionChanged(); | ||
} | ||
set => HorizontalMarginBindable.Value = value; | ||
} | ||
|
||
[JsonIgnore] | ||
|
@@ -53,19 +43,6 @@ public float HorizontalMargin | |
public int Line | ||
{ | ||
get => LineBindable.Value; | ||
set | ||
{ | ||
LineBindable.Value = value; | ||
TriggerOrderVersionChanged(); | ||
} | ||
} | ||
|
||
public int CompareTo(ClassicLyricLayout? other) | ||
{ | ||
return ComparableUtils.CompareByProperty(this, other, | ||
x => x.Line, | ||
x => x.Alignment, | ||
x => x.HorizontalMargin, | ||
x => x.ID); | ||
set => LineBindable.Value = value; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using osu.Game.Rulesets.Karaoke.Objects; | ||
using osu.Game.Rulesets.Karaoke.Utils; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Stages.Infos.Preview; | ||
|
||
public class PreviewLyricLayout : StageElement, IComparable<PreviewLyricLayout> | ||
public class PreviewLyricLayout : StageElement | ||
{ | ||
/// <summary> | ||
/// <see cref="Lyric"/>'s timing with row index. | ||
|
@@ -24,10 +22,4 @@ public class PreviewLyricLayout : StageElement, IComparable<PreviewLyricLayout> | |
/// <see cref="Lyric"/>'s end time. | ||
/// </summary> | ||
public double EndTime { get; set; } | ||
|
||
public int CompareTo(PreviewLyricLayout? other) | ||
{ | ||
return ComparableUtils.CompareByProperty(this, other, | ||
x => x.ID); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using osu.Game.Rulesets.Karaoke.Objects; | ||
using osu.Game.Rulesets.Karaoke.Utils; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Stages.Infos.Preview; | ||
|
||
public class PreviewStyle : StageElement, IComparable<PreviewStyle> | ||
public class PreviewStyle : StageElement | ||
{ | ||
/// <summary> | ||
/// <see cref="Lyric"/>'s skin lookup index. | ||
|
@@ -18,11 +16,4 @@ public class PreviewStyle : StageElement, IComparable<PreviewStyle> | |
/// <see cref="Note"/>'s skin lookup index. | ||
/// </summary> | ||
public int? NoteStyleIndex { get; set; } | ||
|
||
public int CompareTo(PreviewStyle? other) | ||
{ | ||
return ComparableUtils.CompareByProperty(this, other, | ||
x => x.Name, | ||
x => x.ID); | ||
} | ||
} |
Oops, something went wrong.