Add ModFlowDisplay and consume in ContractedPanelMiddleContent

This commit is contained in:
Dean Herbert
2021-07-21 16:38:18 +09:00
parent b65e607941
commit b910c21230
4 changed files with 137 additions and 4 deletions

View File

@ -131,13 +131,14 @@ namespace osu.Game.Screens.Ranking.Contracted
createStatistic("Accuracy", $"{score.Accuracy.FormatAccuracy()}"),
}
},
new ModDisplay
new ModFlowDisplay
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
ExpansionMode = ExpansionMode.AlwaysExpanded,
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
Current = { Value = score.Mods },
Scale = new Vector2(0.5f),
IconScale = 0.5f,
}
}
}