Skip to content

Commit

Permalink
Update GameplaySongbar arrow color
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwcgt committed Jun 29, 2024
1 parent 8736293 commit 266c9ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Game.Tournament/Screens/Gameplay/GameplaySongBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
Expand Down Expand Up @@ -160,7 +161,9 @@ private void updateState()
return;
}

arrowColor.Value = TournamentGame.GetTeamColour(isChoice.Team);
arrowColor.Value = GetTeamColour(isChoice.Team);

static ColourInfo GetTeamColour(TeamColour teamColour) => teamColour == TeamColour.Red ? Color4Extensions.FromHex("#D43030") : Color4Extensions.FromHex("#2A82E4");

Check failure on line 166 in osu.Game.Tournament/Screens/Gameplay/GameplaySongBar.cs

View workflow job for this annotation

GitHub Actions / Code Quality

Naming rule violation: The first word, 'GetTeamColour', must begin with a lower case character (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
}

protected override void PostUpdate()
Expand Down

0 comments on commit 266c9ee

Please sign in to comment.