Skip to content

Commit

Permalink
Merge pull request #196 from WilliamQiufeng/add-timinggroup-visibility
Browse files Browse the repository at this point in the history
Add timing group visibility
  • Loading branch information
Swan authored Nov 22, 2024
2 parents 1d72816 + e8c8891 commit fb49b99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Quaver.API/Maps/Structures/TimingGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public abstract class TimingGroup
/// </summary>
public string ColorRgb { get; [MoonSharpVisible(false)] set; }

/// <summary>
/// Is the timing group hidden in the editor?
/// </summary>
public bool Hidden { get; [MoonSharpVisible(false)] set; }

/// <summary>
/// Converts the stringified color to a System.Drawing color
/// </summary>
Expand All @@ -42,7 +47,7 @@ public Color GetColor() =>
/// <returns></returns>
protected bool Equals(TimingGroup other)
{
return ColorRgb == other.ColorRgb;
return ColorRgb == other.ColorRgb && Hidden == other.Hidden;
}

/// <summary>
Expand Down

0 comments on commit fb49b99

Please sign in to comment.