mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 01:02:56 +08:00
Split out if statement for readability
This commit is contained in:
parent
929be3e9e7
commit
c2a40c574d
@ -52,11 +52,14 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
var isOwnScore = api.LocalUser.Value.Id == score.UserID;
|
||||
|
||||
if (index % 2 != 0 && !isOwnScore)
|
||||
if (isOwnScore)
|
||||
background.Colour = colours.GreenDarker;
|
||||
else if (index % 2 == 0)
|
||||
background.Colour = colours.Gray3;
|
||||
else
|
||||
background.Alpha = 0;
|
||||
|
||||
hoveredBackground.Colour = isOwnScore ? colours.GreenDark : colours.Gray4;
|
||||
background.Colour = isOwnScore ? colours.GreenDarker : colours.Gray3;
|
||||
}
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
|
Loading…
Reference in New Issue
Block a user