From 4ccfa380f5c3d610f70efb05a5ff82e938e8b9e3 Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Thu, 16 Feb 2017 19:09:18 -0400 Subject: [PATCH] Added high/low multiplier indication --- osu.Game/Overlays/Mods/ModSelect.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/osu.Game/Overlays/Mods/ModSelect.cs b/osu.Game/Overlays/Mods/ModSelect.cs index dec5dea2b6..7efff1aaac 100644 --- a/osu.Game/Overlays/Mods/ModSelect.cs +++ b/osu.Game/Overlays/Mods/ModSelect.cs @@ -31,6 +31,9 @@ namespace osu.Game.Overlays.Mods private readonly float content_width = 0.8f; + private Color4 low_multiplier_colour; + private Color4 high_multiplier_colour; + private OsuSpriteText rankedLabel, multiplierLabel; private FlowContainer rankedMultiplerContainer; @@ -141,6 +144,9 @@ namespace osu.Game.Overlays.Mods waves[1].Colour = colours.Blue; waves[2].Colour = colours.BlueDark; waves[3].Colour = colours.BlueDarker; + + low_multiplier_colour = colours.Red; + high_multiplier_colour = colours.Green; } private void modButtonPressed(Mod[] sectionSelectedMods) @@ -208,6 +214,18 @@ namespace osu.Game.Overlays.Mods // 1.20x multiplierLabel.Text = string.Format("{0:N2}x", multiplier); rankedLabel.Text = $"{ranked ? @"Ranked" : @"Unranked"}, Score Multiplier: "; + if (multiplier > 1.0) + { + multiplierLabel.FadeColour(high_multiplier_colour, 200); + } + else if (multiplier < 1.0) + { + multiplierLabel.FadeColour(low_multiplier_colour, 200); + } + else + { + multiplierLabel.FadeColour(Color4.White, 200); + } } private void refreshSelectedMods()