1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:05:34 +08:00

Added high/low multiplier indication

This commit is contained in:
DrabWeb 2017-02-16 19:09:18 -04:00
parent e0dab3490f
commit 4ccfa380f5

View File

@ -31,6 +31,9 @@ namespace osu.Game.Overlays.Mods
private readonly float content_width = 0.8f; private readonly float content_width = 0.8f;
private Color4 low_multiplier_colour;
private Color4 high_multiplier_colour;
private OsuSpriteText rankedLabel, multiplierLabel; private OsuSpriteText rankedLabel, multiplierLabel;
private FlowContainer rankedMultiplerContainer; private FlowContainer rankedMultiplerContainer;
@ -141,6 +144,9 @@ namespace osu.Game.Overlays.Mods
waves[1].Colour = colours.Blue; waves[1].Colour = colours.Blue;
waves[2].Colour = colours.BlueDark; waves[2].Colour = colours.BlueDark;
waves[3].Colour = colours.BlueDarker; waves[3].Colour = colours.BlueDarker;
low_multiplier_colour = colours.Red;
high_multiplier_colour = colours.Green;
} }
private void modButtonPressed(Mod[] sectionSelectedMods) private void modButtonPressed(Mod[] sectionSelectedMods)
@ -208,6 +214,18 @@ namespace osu.Game.Overlays.Mods
// 1.20x // 1.20x
multiplierLabel.Text = string.Format("{0:N2}x", multiplier); multiplierLabel.Text = string.Format("{0:N2}x", multiplier);
rankedLabel.Text = $"{ranked ? @"Ranked" : @"Unranked"}, Score 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() private void refreshSelectedMods()