mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Plotting the chart 2
This commit is contained in:
parent
2d8277f413
commit
516ba10dad
@ -7,7 +7,6 @@ using osu.Framework.Graphics.Colour;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Logging;
|
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.API.Requests;
|
using osu.Game.Online.API.Requests;
|
||||||
@ -30,6 +29,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
|
Masking = true;
|
||||||
Child = container = new Container
|
Child = container = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
@ -117,12 +117,13 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
container.Add(new Box
|
container.Add(new Box
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
Width = Math.Max(container.DrawWidth / changelogChartInfo.BuildHistory.Count, 2),
|
Width = Math.Max(container.DrawWidth / changelogChartInfo.BuildHistory.Count, 1),
|
||||||
Height = build.UserCount / maxUserCount,
|
Height = build.UserCount / maxUserCount,
|
||||||
X = currentPos,
|
X = currentPos,
|
||||||
Colour = colour,
|
Colour = colour,
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
|
Blending = BlendingMode.None,
|
||||||
});
|
});
|
||||||
currentPos += container.DrawWidth / changelogChartInfo.BuildHistory.Count;
|
currentPos += container.DrawWidth / changelogChartInfo.BuildHistory.Count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user