Merge pull request #20679 from peppy/remove-duplicated-colour

Remove duplicated colour in osu!mania argon skin column colouring
This commit is contained in:
Dan Balasescu 2022-10-11 17:44:34 +09:00 committed by GitHub
commit ac2c986ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Bindables; using osu.Framework.Bindables;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
@ -89,13 +90,15 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
Color4 colour; Color4 colour;
const int total_colours = 7;
if (stage.IsSpecialColumn(column)) if (stage.IsSpecialColumn(column))
colour = new Color4(159, 101, 255, 255); colour = new Color4(159, 101, 255, 255);
else else
{ {
switch (column % 8) switch (column % total_colours)
{ {
default: case 0:
colour = new Color4(240, 216, 0, 255); colour = new Color4(240, 216, 0, 255);
break; break;
@ -112,20 +115,19 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
break; break;
case 4: case 4:
colour = new Color4(178, 0, 240, 255);
break;
case 5:
colour = new Color4(0, 96, 240, 255); colour = new Color4(0, 96, 240, 255);
break; break;
case 6: case 5:
colour = new Color4(0, 226, 240, 255); colour = new Color4(0, 226, 240, 255);
break; break;
case 7: case 6:
colour = new Color4(0, 240, 96, 255); colour = new Color4(0, 240, 96, 255);
break; break;
default:
throw new ArgumentOutOfRangeException();
} }
} }