mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Fix scaling of BeatmapInfoOverlay wedge.
This commit is contained in:
parent
611619fd9c
commit
2e05ec0296
@ -1,4 +1,5 @@
|
||||
using OpenTK;
|
||||
using System;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
@ -61,7 +62,7 @@ namespace osu.Game.Screens.Select
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Texture = beatmap.Background,
|
||||
Scale = new Vector2(1366 / beatmap.Background.Width * 0.6f),
|
||||
FillMode = FillMode.Fill,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -37,7 +37,7 @@ namespace osu.Game.Screens.Select
|
||||
private TrackManager trackManager;
|
||||
private Container backgroundWedgesContainer;
|
||||
|
||||
private static readonly Vector2 wedged_container_size = new Vector2(700, 225);
|
||||
private static readonly Vector2 wedged_container_size = new Vector2(0.5f, 225);
|
||||
private static readonly Vector2 wedged_container_shear = new Vector2(0.15f, 0);
|
||||
private static readonly Vector2 wedged_container_start_position = new Vector2(0, 50);
|
||||
private BeatmapInfoOverlay wedgedBeatmapInfoOverlay;
|
||||
@ -93,6 +93,7 @@ namespace osu.Game.Screens.Select
|
||||
Alpha = 0,
|
||||
Position = wedged_container_start_position,
|
||||
Size = wedged_container_size,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Shear = wedged_container_shear,
|
||||
Margin = new MarginPadding { Top = 20, Right = 20, },
|
||||
Masking = true,
|
||||
|
Loading…
Reference in New Issue
Block a user